diff options
Diffstat (limited to 'lib/Target/X86/InstSelectSimple.cpp')
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 45df82906b..af2544f17d 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -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]. |