projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b4711b
)
Use a simpler constructor for ConstantInt.
author
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Mar 2007 20:25:31 +0000
(20:25 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Mar 2007 20:25:31 +0000
(20:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34803
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bytecode/Reader/Reader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bytecode/Reader/Reader.cpp
b/lib/Bytecode/Reader/Reader.cpp
index 0e02c6baba967bf58f1317eebd4507580362ffff..cb798df9e1464d7db42c142f8764c344a7c4c504 100644
(file)
--- 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;