Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit ddec344

Browse files
rayngunsramasit
authored andcommitted
Fix APInt call
1 parent 86a771f commit ddec344

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)