mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +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();
|
return ElementType.get();
|
||||||
}
|
}
|
||||||
virtual bool indexValid(const Value *V) const {
|
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.
|
// getIndexType() - Return the type required of indices for this composite.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user