mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Convert index type for getelementptr instruction from uint to long
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3678 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a98bde53a7
commit
dbd35c22e4
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user