From: Alkis Evlogimenos Date: Thu, 28 Oct 2004 06:43:38 +0000 (+0000) Subject: Gep indices must be of int, uint, long or ulong type. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=56a2468b68a8b8b2e06f206235613f74b339dda8;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index bf6332b44c7..b5831ae26ea 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(1, ConstantInt::get(Type::UByteTy, 1))), + std::vector(1, ConstantInt::get(Type::UIntTy, 1))), Type::UIntTy); }