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/CGExpr.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/CGExpr.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 257f2fc4f2f..7809972630b 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -1106,8 +1106,9 @@ LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) { bool NonGCable = VD->hasLocalStorage() && !VD->hasAttr<BlocksAttr>(); llvm::Value *V = LocalDeclMap[VD]; - if (!V && VD->isStaticLocal()) - V = CGM.getStaticLocalDeclMap(VD); + if (!V && getContext().getLangOptions().CPlusPlus && + VD->isStaticLocal()) + V = CGM.getStaticLocalDeclAddress(VD); assert(V && "DeclRefExpr not entered in LocalDeclMap?"); Qualifiers Quals = MakeQualifiers(E->getType()); |