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:
Chris Lattner 2003-11-25 21:20:19 +00:00
parent be883a23ed
commit 6c7901bd11

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.