[llvm-commits] CVS: llvm/include/llvm/DerivedTypes.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 10 20:17:01 PDT 2002
Changes in directory llvm/include/llvm:
DerivedTypes.h updated: 1.27 -> 1.28
---
Log message:
Convert index type for getelementptr instruction from uint to long
---
Diffs of the changes:
Index: llvm/include/llvm/DerivedTypes.h
diff -u llvm/include/llvm/DerivedTypes.h:1.27 llvm/include/llvm/DerivedTypes.h:1.28
--- llvm/include/llvm/DerivedTypes.h:1.27 Tue Jun 25 11:10:40 2002
+++ llvm/include/llvm/DerivedTypes.h Tue Sep 10 20:16:19 2002
@@ -264,13 +264,13 @@
return ElementType.get();
}
virtual bool indexValid(const Value *V) const {
- return V->getType() == Type::UIntTy; // Must be an unsigned int index
+ return V->getType() == Type::LongTy; // Must be a 'long' index
}
// getIndexType() - Return the type required of indices for this composite.
// For structures, this is ubyte, for arrays, this is uint
//
- virtual const Type *getIndexType() const { return Type::UIntTy; }
+ virtual const Type *getIndexType() const { return Type::LongTy; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const SequentialType *T) { return true; }
More information about the llvm-commits
mailing list