1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Convert index type for getelementptr instruction from uint to long

llvm-svn: 3678
This commit is contained in:
Chris Lattner 2002-09-11 01:16:19 +00:00
parent 1a91b112b7
commit 2d1e19f9e2

View File

@ -264,13 +264,13 @@ public:
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; }