From: Alkis Evlogimenos Date: Sun, 24 Oct 2004 03:02:16 +0000 (+0000) Subject: Make this actually work. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6edde961e274d738f5cf0ca956eec3384860e810;p=oota-llvm.git Make this actually work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17199 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 3d2e658e634..bf6332b44c7 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -1245,10 +1245,10 @@ Constant *ConstantExpr::getZeroExtend(Constant *C, const Type *Ty) { } Constant *ConstantExpr::getSizeOf(const Type *Ty) { - // sizeof is implemented as: (unsigned) gep (Ty)null, 1 + // sizeof is implemented as: (unsigned) gep (Ty*)null, 1 return getCast( getGetElementPtr( - getNullValue(Ty), + getNullValue(PointerType::get(Ty)), std::vector(1, ConstantInt::get(Type::UByteTy, 1))), Type::UIntTy); }