diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-02 21:18:22 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-02 21:18:22 +0000 |
commit | b0d0ea042116c1f451d3db8ceff9f1dd92bc36d2 (patch) | |
tree | 4cffc06af9c45d2399bae7714b8f13de63f2aa5b /lib/CodeGen/CGExprConstant.cpp | |
parent | 714179b179a31a0c3769a968ee18ba87b901b13f (diff) |
use CodeGenModule::EmitNullConstant in a couple of places.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index dbb1bdcc6e..3a1eac9e04 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -772,5 +772,5 @@ llvm::Constant *CodeGenModule::EmitConstantExpr(const Expr *E, llvm::Constant *CodeGenModule::EmitNullConstant(QualType T) { // Always return an LLVM null constant for now; this will change when we // get support for IRGen of member pointers. - return llvm::Constant::getNullValue(getTypes().ConvertType(T)); + return llvm::Constant::getNullValue(getTypes().ConvertTypeForMem(T)); } |