summaryrefslogtreecommitdiff
path: root/include/llvm/DerivedTypes.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-11 01:16:19 +0000
committerChris Lattner <sabre@nondot.org>2002-09-11 01:16:19 +0000
commitdbd35c22e47364343bc8672f2ace63539a476a37 (patch)
treec7b5925b93ff957eb0355ebd7dfbeae30712c221 /include/llvm/DerivedTypes.h
parenta98bde53a7eb13e02c1dc707dae58aa21fd7ea2c (diff)
downloadllvm-dbd35c22e47364343bc8672f2ace63539a476a37.tar.gz
llvm-dbd35c22e47364343bc8672f2ace63539a476a37.tar.bz2
llvm-dbd35c22e47364343bc8672f2ace63539a476a37.tar.xz
Convert index type for getelementptr instruction from uint to long
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DerivedTypes.h')
-rw-r--r--include/llvm/DerivedTypes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index 9e6382328c..3e9450ab7f 100644
--- a/include/llvm/DerivedTypes.h
+++ b/include/llvm/DerivedTypes.h
@@ -264,13 +264,13 @@ public:
return ElementType.get();
}
virtual bool indexValid(const Value *V) const {
- return V->getType() == Type::UIntTy; // Must be an unsigned int index
+ return V->getType() == Type::LongTy; // Must be a 'long' index
}
// getIndexType() - Return the type required of indices for this composite.
// For structures, this is ubyte, for arrays, this is uint
//
- virtual const Type *getIndexType() const { return Type::UIntTy; }
+ virtual const Type *getIndexType() const { return Type::LongTy; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const SequentialType *T) { return true; }