mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Update the bitcode reader to support reading .bc files where the embedded
metadata references non-Constant values such as instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72685 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
079c034489
commit
3728a02534
@ -1025,7 +1025,7 @@ bool BitcodeReader::ParseConstants() {
|
||||
for (unsigned i = 0; i != Size; i += 2) {
|
||||
const Type *Ty = getTypeByID(Record[i], false);
|
||||
if (Ty != Type::VoidTy)
|
||||
Elts.push_back(ValueList.getConstantFwdRef(Record[i+1], Ty));
|
||||
Elts.push_back(ValueList.getValueFwdRef(Record[i+1], Ty));
|
||||
else
|
||||
Elts.push_back(NULL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user