mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Use a simpler constructor for ConstantInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b4711bd94
commit
e2a6acd13f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user