mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 00:24:00 +00:00
It is legal to index into sequential types with any integer
llvm-svn: 10227
This commit is contained in:
parent
7b895914a2
commit
cf937c503f
@ -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…
x
Reference in New Issue
Block a user