summaryrefslogtreecommitdiffstats
path: root/source/Symbol/Variable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Symbol/Variable.cpp')
-rw-r--r--source/Symbol/Variable.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/Symbol/Variable.cpp b/source/Symbol/Variable.cpp
index b1a60f6..4c03a30 100644
--- a/source/Symbol/Variable.cpp
+++ b/source/Symbol/Variable.cpp
@@ -203,7 +203,10 @@ void
Variable::CalculateSymbolContext (SymbolContext *sc)
{
if (m_owner_scope)
+ {
m_owner_scope->CalculateSymbolContext(sc);
+ sc->variable = this;
+ }
else
sc->Clear(false);
}
OpenPOWER on IntegriCloud