mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +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@3484 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1638,7 +1638,7 @@ MemoryInst : MALLOC Types {
|
||||
if (!isa<PointerType>($2->get()))
|
||||
ThrowException("Can't load from nonpointer type: " +
|
||||
(*$2)->getDescription());
|
||||
if (LoadInst::getIndexedType(*$2, *$4) == 0)
|
||||
if (GetElementPtrInst::getIndexedType(*$2, *$4) == 0)
|
||||
ThrowException("Invalid indices for load instruction!");
|
||||
|
||||
Value *Src = getVal(*$2, $3);
|
||||
@@ -1661,7 +1661,7 @@ MemoryInst : MALLOC Types {
|
||||
if (!isa<PointerType>($4->get()))
|
||||
ThrowException("Can't store to a nonpointer type: " +
|
||||
(*$4)->getDescription());
|
||||
const Type *ElTy = StoreInst::getIndexedType(*$4, *$6);
|
||||
const Type *ElTy = GetElementPtrInst::getIndexedType(*$4, *$6);
|
||||
if (ElTy == 0)
|
||||
ThrowException("Can't store into that field list!");
|
||||
if (ElTy != $2->getType())
|
||||
|
Reference in New Issue
Block a user