diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-25 21:20:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-25 21:20:19 +0000 |
commit | 6c7901bd1131b9dd932b05ee372449858d485440 (patch) | |
tree | a8598d116af4e0db4563dd19ee6ac47d2abef76a /include | |
parent | be883a23ed64b83235d509ad0befc1d6aa6b0cd8 (diff) | |
download | external_llvm-6c7901bd1131b9dd932b05ee372449858d485440.zip external_llvm-6c7901bd1131b9dd932b05ee372449858d485440.tar.gz external_llvm-6c7901bd1131b9dd932b05ee372449858d485440.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DerivedTypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index 8d23df1..c0cd601 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -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. |