summaryrefslogtreecommitdiff
path: root/src/loadinit.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-01-06 19:22:28 -0500
committerAdrian Thurston <thurston@complang.org>2014-01-06 19:22:28 -0500
commit95a688ad149ab1c579d358daacd06d609b517dd6 (patch)
tree625a9790354e91cd86b7bcbdd01b51cc8cd3e7be /src/loadinit.cc
parent46e106444cca638946d7b7335b233c56ea5a0e56 (diff)
downloadcolm-95a688ad149ab1c579d358daacd06d609b517dd6.tar.gz
added function for the current context
Diffstat (limited to 'src/loadinit.cc')
-rw-r--r--src/loadinit.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loadinit.cc b/src/loadinit.cc
index e26f731d..1330ac6d 100644
--- a/src/loadinit.cc
+++ b/src/loadinit.cc
@@ -269,7 +269,7 @@ void LoadInit::walkDefinition( item &define )
LelDefList *defList = new LelDefList;
walkProdList( name, defList, ProdList );
- NtDef *ntDef = NtDef::cons( name, namespaceStack.top(), contextStack.top(), false );
+ NtDef *ntDef = NtDef::cons( name, namespaceStack.top(), curContext(), false );
ObjectDef *objectDef = ObjectDef::cons( ObjectDef::UserType, name, pd->nextObjectId++ );
cflDef( ntDef, objectDef, defList );
}