From: Chris Lattner Date: Wed, 10 Feb 2010 21:41:43 +0000 (+0000) Subject: hopefully silence a warning on the clang-i386-darwin9 tester. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0f3df3245fa2737b459e198273762a27b76f75a;p=clang hopefully silence a warning on the clang-i386-darwin9 tester. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95812 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 5800ce770c..3df552d75b 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -1027,7 +1027,7 @@ llvm::Constant *CodeGenModule::EmitNullConstant(QualType T) { // Itanium C++ ABI 2.3: // A NULL pointer is represented as -1. - return llvm::ConstantInt::get(getTypes().ConvertTypeForMem(T), -1, + return llvm::ConstantInt::get(getTypes().ConvertTypeForMem(T), -1ULL, /*isSigned=*/true); }