mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Adjust to the changed StructType interface. In particular, getElementTypes() is gone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11228 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2103,7 +2103,7 @@ void ISel::emitGEPOperation(MachineBasicBlock *MBB,
|
||||
}
|
||||
// The next type is the member of the structure selected by the
|
||||
// index.
|
||||
Ty = StTy->getElementTypes()[idxValue];
|
||||
Ty = StTy->getElementType(idxValue);
|
||||
} else if (const SequentialType *SqTy = cast<SequentialType>(Ty)) {
|
||||
// It's an array or pointer access: [ArraySize x ElementType].
|
||||
|
||||
|
||||
Reference in New Issue
Block a user