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 | 63326a53418b4853a83b360ce1dbdb10c5739fc7 (patch) | |
| tree | b9c2571649b85bfbf37155a5833aaa92984621c4 /lib/CodeGen/CGExpr.cpp | |
| parent | c220a18ecdfa42ebb3ce267974cf24e343e2aa6d (diff) | |
Some renaming of methods, fixes typo
(related to PR6769).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 257f2fc4f2..7809972630 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/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()); |
