[llvm-commits] CVS: llvm/tools/lli/Execution.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 10 20:22:10 PDT 2002
Changes in directory llvm/tools/lli:
Execution.cpp updated: 1.63 -> 1.64
---
Log message:
- Change getelementptr instruction to use long indexes instead of uint
indexes for sequential types.
---
Diffs of the changes:
Index: llvm/tools/lli/Execution.cpp
diff -u llvm/tools/lli/Execution.cpp:1.63 llvm/tools/lli/Execution.cpp:1.64
--- llvm/tools/lli/Execution.cpp:1.63 Mon Sep 2 20:08:28 2002
+++ llvm/tools/lli/Execution.cpp Tue Sep 10 20:21:35 2002
@@ -822,7 +822,7 @@
} else if (const SequentialType *ST = cast<SequentialType>(Ty)) {
// Get the index number for the array... which must be uint type...
- assert((*I)->getType() == Type::UIntTy);
+ assert((*I)->getType() == Type::LongTy);
unsigned Idx = getOperandValue(*I, SF).UIntVal;
if (const ArrayType *AT = dyn_cast<ArrayType>(ST))
if (Idx >= AT->getNumElements() && ArrayChecksEnabled) {
More information about the llvm-commits
mailing list