diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-10-28 06:43:38 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-10-28 06:43:38 +0000 |
commit | 56a2468b68a8b8b2e06f206235613f74b339dda8 (patch) | |
tree | bf3206241693b6c78bf241bf30f79954d9326e16 /lib | |
parent | 64b5fb262719c61140aad5ef07d5976a5f10fb01 (diff) | |
download | external_llvm-56a2468b68a8b8b2e06f206235613f74b339dda8.zip external_llvm-56a2468b68a8b8b2e06f206235613f74b339dda8.tar.gz external_llvm-56a2468b68a8b8b2e06f206235613f74b339dda8.tar.bz2 |
Gep indices must be of int, uint, long or ulong type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Constants.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index bf6332b..b5831ae 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -1249,7 +1249,7 @@ Constant *ConstantExpr::getSizeOf(const Type *Ty) { return getCast( getGetElementPtr( getNullValue(PointerType::get(Ty)), - std::vector<Constant*>(1, ConstantInt::get(Type::UByteTy, 1))), + std::vector<Constant*>(1, ConstantInt::get(Type::UIntTy, 1))), Type::UIntTy); } |