parent
4a797f461f
commit
f0cd13bc28
|
|
@ -376,6 +376,8 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf,
|
||||||
delete Raw.VarArgs;
|
delete Raw.VarArgs;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
assert(LoadInst::getIndexedType(Raw.Ty, Idx) &&
|
||||||
|
"Bad indices for GEP or Load!");
|
||||||
if (Raw.Opcode == Instruction::Load)
|
if (Raw.Opcode == Instruction::Load)
|
||||||
Res = new LoadInst(getValue(Raw.Ty, Raw.Arg1), Idx);
|
Res = new LoadInst(getValue(Raw.Ty, Raw.Arg1), Idx);
|
||||||
else if (Raw.Opcode == Instruction::GetElementPtr)
|
else if (Raw.Opcode == Instruction::GetElementPtr)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue