summaryrefslogtreecommitdiff
path: root/parse/specialize.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-26 13:28:23 -0700
committerOri Bernstein <ori@eigenstate.org>2015-09-26 13:28:23 -0700
commit2c27e157e7fcdc82a6f010dd63d1ee433b86fe1d (patch)
tree661f08a64fbca4c41f5289b54f565e2e61c4d673 /parse/specialize.c
parentf4a4987fb85dc9ea146146068734988bb046a3ab (diff)
downloadmc-2c27e157e7fcdc82a6f010dd63d1ee433b86fe1d.tar.gz
Make things that should be global global.
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 dcf4316..f2df7a7 100644
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -461,6 +461,7 @@ static Node *initdecl(Node *file, Node *name, Type *tyvoidfn)
if (!dcl) {
dcl = mkdecl(Zloc, name, tyvoidfn);
dcl->decl.isconst = 1;
+ dcl->decl.isglobl = 1;
dcl->decl.isinit = 1;
dcl->decl.isextern = 1;
putdcl(file->file.globls, dcl);