Skip to content

Commit 53ce850

Browse files
committed
[Bitcode] Use ConstantInt::getSigned()
This is encoded as a signed value, so use getSigned().
1 parent bd8c063 commit 53ce850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3302,7 +3302,7 @@ Error BitcodeReader::parseConstants() {
33023302
case bitc::CST_CODE_INTEGER: // INTEGER: [intval]
33033303
if (!CurTy->isIntOrIntVectorTy() || Record.empty())
33043304
return error("Invalid integer const record");
3305-
V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0]));
3305+
V = ConstantInt::getSigned(CurTy, decodeSignRotatedValue(Record[0]));
33063306
break;
33073307
case bitc::CST_CODE_WIDE_INTEGER: {// WIDE_INTEGER: [n x intval]
33083308
if (!CurTy->isIntOrIntVectorTy() || Record.empty())

0 commit comments

Comments
 (0)