summaryrefslogtreecommitdiff
path: root/parse/specialize.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-10-01 21:56:47 -0700
committerOri Bernstein <ori@eigenstate.org>2015-10-01 22:35:32 -0700
commitb6368fd6d548d07f3a94e782579badab14790821 (patch)
treec8cb2486c21ef027aef05d8d2cccc6c5d8ee8cab /parse/specialize.c
parent31dc0048af3102df08524099df2f005f547a2421 (diff)
downloadmc-b6368fd6d548d07f3a94e782579badab14790821.tar.gz
Don't double-insert namespaces.
updatens() was changed at some point to register the namespace. We don't need to put it in again after we call it, and in fact, we crash if we do.
Diffstat (limited to 'parse/specialize.c')
-rw-r--r--parse/specialize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/specialize.c b/parse/specialize.c
index f2df7a7..de884de 100644
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -464,6 +464,7 @@ static Node *initdecl(Node *file, Node *name, Type *tyvoidfn)
dcl->decl.isglobl = 1;
dcl->decl.isinit = 1;
dcl->decl.isextern = 1;
+ dcl->decl.ishidden = 1;
putdcl(file->file.globls, dcl);
}
return dcl;