aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/DerivedTypes.h2
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.