From 4d55b2d049760b9f81d3dc4af6a751537fc0e666 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 19 Apr 2010 18:15:02 +0000 Subject: Some renaming of methods, fixes typo (related to PR6769). llvm-svn: 101794 --- clang/lib/CodeGen/CGDecl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGDecl.cpp') diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 58b90929f04..ff78cc8184a 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -205,7 +205,8 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D, // Store into LocalDeclMap before generating initializer to handle // circular references. DMEntry = GV; - CGM.setStaticLocalDeclMap(&D, GV); + if (getContext().getLangOptions().CPlusPlus) + CGM.setStaticLocalDeclAddress(&D, GV); // Make sure to evaluate VLA bounds now so that we have them for later. // -- cgit v1.2.3