summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 20:25:31 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 20:25:31 +0000
commitfa80a0e8a221a660fd2eaca4ac644b2416617760 (patch)
tree6ab2b95806c1fcc73be23ef2cd56310721986cf6 /llvm/lib/Bytecode
parentd5453d7b5657805fbfbbcbadd611c953472c8880 (diff)
downloadbcm5719-llvm-fa80a0e8a221a660fd2eaca4ac644b2416617760.tar.gz
bcm5719-llvm-fa80a0e8a221a660fd2eaca4ac644b2416617760.zip
Use a simpler constructor for ConstantInt.
llvm-svn: 34803
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud