diff options
Diffstat (limited to 'clang/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CGDecl.cpp b/clang/CodeGen/CGDecl.cpp index cd31fa7a7d3..c80cecc76ee 100644 --- a/clang/CodeGen/CGDecl.cpp +++ b/clang/CodeGen/CGDecl.cpp @@ -77,7 +77,7 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const BlockVarDecl &D) { if (D.getInit() == 0) { Init = llvm::Constant::getNullValue(LTy); } else { - Init = CGM.EmitGlobalInit(D.getInit()); + Init = CGM.EmitConstantExpr(D.getInit(), this); } assert(Init && "Unable to create initialiser for static decl"); |