Skip to content

Commit 0ad3ee1

Browse files
rayngunsramasit
authored andcommitted
Fix APInt call
1 parent 68190c6 commit 0ad3ee1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/IR/Builders.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ IntegerAttr Builder::getUI32IntegerAttr(uint32_t value) {
211211
}
212212

213213
IntegerAttr Builder::getI16IntegerAttr(int16_t value) {
214-
return IntegerAttr::get(getIntegerType(16), APInt(16, value));
214+
return IntegerAttr::get(getIntegerType(16),
215+
APInt(16, value, /*isSigned=*/true));
215216
}
216217

217218
IntegerAttr Builder::getI8IntegerAttr(int8_t value) {

0 commit comments

Comments
 (0)