mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Load & StoreInst no longer derive from MemAccessInst, so we don't have
to handle indexing anymore git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3485 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -444,7 +444,7 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf,
|
||||
cerr << "WARNING: Bytecode contains load instruction with indices. "
|
||||
<< "Replacing with getelementptr/load pair\n";
|
||||
|
||||
const Type *ElType = StoreInst::getIndexedType(Raw.Ty, Idx);
|
||||
const Type *ElType = GetElementPtrInst::getIndexedType(Raw.Ty, Idx);
|
||||
if (ElType == 0) return true;
|
||||
|
||||
Ptr = new GetElementPtrInst(Ptr, Idx);
|
||||
|
Reference in New Issue
Block a user