Use a simpler constructor for ConstantInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34803 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index 0e02c6b..cb798df 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/lib/Bytecode/Reader/Reader.cpp
@@ -1269,7 +1269,7 @@
uint64_t *data = new uint64_t[numWords];
for (uint32_t i = 0; i < numWords; ++i)
data[i] = read_vbr_uint64();
- Result = ConstantInt::get(IT, APInt(IT->getBitWidth(), numWords, data));
+ Result = ConstantInt::get(APInt(IT->getBitWidth(), numWords, data));
if (Handler) Handler->handleConstantValue(Result);
}
break;