diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-09 04:37:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-09 04:37:31 +0000 |
commit | d21cd809b656d3011ec089536857e048e037159c (patch) | |
tree | 131bf120f81f62962ffbb7520d785b63cf8d4b16 /lib/Target/X86/InstSelectSimple.cpp | |
parent | 037b8b70d04ce214464c89d2480811484f9ec13d (diff) |
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
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]. |