From 80f97ab08fe679307edcc31f3d7ceb6f0d951a5b Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Wed, 8 Apr 2009 04:48:15 +0000 Subject: Add a destination type argument to EmitConstantExpr. This will be used for when the destination has a reference type. (No functionality change yet) llvm-svn: 68593 --- clang/lib/CodeGen/CGDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGDecl.cpp') diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index b8f5ca85cf5..f0822675f87 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -121,7 +121,7 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D) { DMEntry = GV; if (D.getInit()) { - llvm::Constant *Init = CGM.EmitConstantExpr(D.getInit(), this); + llvm::Constant *Init = CGM.EmitConstantExpr(D.getInit(), D.getType(), this); // If constant emission failed, then this should be a C++ static // initializer. -- cgit v1.2.3