diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-18 21:01:23 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-18 21:01:23 +0000 |
commit | 65ad5a42cca954e070428dcc499b62393aa7a6d3 (patch) | |
tree | de23c5c8fa2c980ccc3d6428af868ea9073e178b /lib/CodeGen/CGDecl.cpp | |
parent | a75b71f967d7f090ef16a3d255baddbdce7ff81e (diff) |
Local static variables must be available module-wise
as they are accessible in static methods in a class
local to the same function. Fixes PR6769.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 07d219f1fb..58b90929f0 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -205,6 +205,7 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D, // Store into LocalDeclMap before generating initializer to handle // circular references. DMEntry = GV; + CGM.setStaticLocalDeclMap(&D, GV); // Make sure to evaluate VLA bounds now so that we have them for later. // |