diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 0e02c6baba9..cb798df9e14 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -1269,7 +1269,7 @@ Value *BytecodeReader::ParseConstantPoolValue(unsigned TypeID) { 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;