summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/InstSelectSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-09 04:37:31 +0000
committerChris Lattner <sabre@nondot.org>2004-02-09 04:37:31 +0000
commitac6db755c3cd1870e6a99bf7ba65049e6f923e53 (patch)
treedb23ada97a1e7195ba277fd9dcd770026ebbfa52 /llvm/lib/Target/X86/InstSelectSimple.cpp
parent4da68e2d7b21e988148d612d429cb51315138300 (diff)
downloadbcm5719-llvm-ac6db755c3cd1870e6a99bf7ba65049e6f923e53.tar.gz
bcm5719-llvm-ac6db755c3cd1870e6a99bf7ba65049e6f923e53.zip
Adjust to the changed StructType interface. In particular, getElementTypes() is gone.
llvm-svn: 11228
Diffstat (limited to 'llvm/lib/Target/X86/InstSelectSimple.cpp')
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index 45df82906bc..af2544f17d0 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/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].
OpenPOWER on IntegriCloud