[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 8 22:42:18 PST 2004


Changes in directory llvm/lib/Target/X86:

InstSelectSimple.cpp updated: 1.153 -> 1.154

---
Log message:

Adjust to the changed StructType interface.  In particular, getElementTypes() is gone.


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.153 llvm/lib/Target/X86/InstSelectSimple.cpp:1.154
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.153	Tue Feb  3 12:54:04 2004
+++ llvm/lib/Target/X86/InstSelectSimple.cpp	Sun Feb  8 22:37:30 2004
@@ -2103,7 +2103,7 @@
       }
       // 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].
 





More information about the llvm-commits mailing list