summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-06-20 00:53:16 -0700
committerOri Bernstein <ori@eigenstate.org>2017-06-20 00:53:16 -0700
commitfb7ccc88638087796d28ff288d757633c1ccb944 (patch)
treed979185b79cefe45a2159185dd65baa5060fde18 /parse/stab.c
parent1406e96fd9acc1075bec2dc59903e05c83f8d609 (diff)
downloadmc-fb7ccc88638087796d28ff288d757633c1ccb944.tar.gz
Generics get specialized. No capture.
Diffstat (limited to 'parse/stab.c')
-rw-r--r--parse/stab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/stab.c b/parse/stab.c
index e3fce6e..6017d47 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -171,7 +171,7 @@ Node *getdcl(Stab *st, Node *n)
s = htget(st->dcl, n);
if (s) {
/* record that this is in the closure of this scope */
- if (fn && !s->decl.isglobl)
+ if (fn && !s->decl.isglobl && !s->decl.isgeneric)
htput(fn->env, s->decl.name, s);
return s;
}