From fa80a0e8a221a660fd2eaca4ac644b2416617760 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 1 Mar 2007 20:25:31 +0000 Subject: Use a simpler constructor for ConstantInt. llvm-svn: 34803 --- llvm/lib/Bytecode/Reader/Reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp') diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index 0e02c6baba9..cb798df9e14 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/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; -- cgit v1.2.3