It is legal to index into sequential types with any integer
llvm-svn: 10227
This commit is contained in:
parent
52310702a1
commit
1c45d5185f
|
@ -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