diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-19 18:15:02 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-19 18:15:02 +0000 |
commit | 4d55b2d049760b9f81d3dc4af6a751537fc0e666 (patch) | |
tree | a1895b5706c05686141ebc32cff89ea185542252 /clang/lib/CodeGen/CGDecl.cpp | |
parent | e6a9912a76caaa3f21d732fbdd53788f61d8ad29 (diff) | |
download | bcm5719-llvm-4d55b2d049760b9f81d3dc4af6a751537fc0e666.tar.gz bcm5719-llvm-4d55b2d049760b9f81d3dc4af6a751537fc0e666.zip |
Some renaming of methods, fixes typo
(related to PR6769).
llvm-svn: 101794
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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. // |