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/CGDecl.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/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 7028e74491..9fd571b816 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -105,9 +105,8 @@ CodeGenFunction::CreateStaticBlockVarDecl(const VarDecl &D, const llvm::Type *LTy = CGM.getTypes().ConvertTypeForMem(Ty); return new llvm::GlobalVariable(CGM.getModule(), LTy, Ty.isConstant(getContext()), Linkage, - llvm::Constant::getNullValue(LTy), Name, - 0, D.isThreadSpecified(), - Ty.getAddressSpace()); + CGM.EmitNullConstant(D.getType()), Name, 0, + D.isThreadSpecified(), Ty.getAddressSpace()); } void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D) { |