summaryrefslogtreecommitdiff
path: root/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
commite2a6acd13f4c9ce5eb1d690a4c9d168fc8661d6c (patch)
treef56592d3bd71e81e38335f0def9d088179135f14 /lib/Bytecode
parent0b4711bd94e0723735848ad999bccfb1fb61eeb9 (diff)
Use a simpler constructor for ConstantInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp2
1 files changed, 1 insertions, 1 deletions
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;