Adjust to the changed StructType interface. In particular, getElementTypes() is...
[oota-llvm.git] / lib / Target / X86 / X86ISelSimple.cpp
index 45df82906bcc2f788d95b5640c4f2588af8104b7..af2544f17d0ebae2e75e79ebf2bdbca96afb36db 100644 (file)
@@ -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].