mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
Add an assertion check
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1276 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b7325433aa
commit
27afeb2be8
@ -376,6 +376,8 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf,
|
||||
delete Raw.VarArgs;
|
||||
break;
|
||||
}
|
||||
assert(LoadInst::getIndexedType(Raw.Ty, Idx) &&
|
||||
"Bad indices for GEP or Load!");
|
||||
if (Raw.Opcode == Instruction::Load)
|
||||
Res = new LoadInst(getValue(Raw.Ty, Raw.Arg1), Idx);
|
||||
else if (Raw.Opcode == Instruction::GetElementPtr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user