It is legal to index into sequential types with any integer

llvm-svn: 10227
This commit is contained in:
Chris Lattner 2003-11-25 21:20:19 +00:00
parent 52310702a1
commit 1c45d5185f
1 changed files with 1 additions and 1 deletions

View File

@ -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.