diff options
| author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-10-24 03:02:16 +0000 |
|---|---|---|
| committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-10-24 03:02:16 +0000 |
| commit | ba28dc8c542e871cf15d3b101d0680235bd3d4f6 (patch) | |
| tree | 47185fda023e871ff430bd3fbd1918284b89758a | |
| parent | ed962e31e2c080ce73015a71dbda596d2feef7b7 (diff) | |
| download | bcm5719-llvm-ba28dc8c542e871cf15d3b101d0680235bd3d4f6.tar.gz bcm5719-llvm-ba28dc8c542e871cf15d3b101d0680235bd3d4f6.zip | |
Make this actually work.
llvm-svn: 17199
| -rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index 3d2e658e634..bf6332b44c7 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/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<Constant*>(1, ConstantInt::get(Type::UByteTy, 1))), Type::UIntTy); } |

