mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
It is legal to index into sequential types with any integer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10227 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
be883a23ed
commit
6c7901bd11
@ -309,7 +309,7 @@ public:
|
||||
return ElementType.get();
|
||||
}
|
||||
virtual bool indexValid(const Value *V) const {
|
||||
return V->getType() == Type::LongTy; // Must be a 'long' index
|
||||
return V->getType()->isInteger();
|
||||
}
|
||||
|
||||
// getIndexType() - Return the type required of indices for this composite.
|
||||
|
Loading…
Reference in New Issue
Block a user