summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-02-10 15:21:02 -0800
committerOri Bernstein <ori@eigenstate.org>2019-02-10 15:21:02 -0800
commit905f4d10a78e7e2f6eb849cf373b14cd78c87d73 (patch)
treecd841643527615bf86323f94635566a9fa6c74f0 /parse/stab.c
parenta8ab64015b9419f0a32c1162c2442c27163dff66 (diff)
downloadmc-905f4d10a78e7e2f6eb849cf373b14cd78c87d73.tar.gz
Boundtype should be harmless on non-params.
Diffstat (limited to 'parse/stab.c')
-rw-r--r--parse/stab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse/stab.c b/parse/stab.c
index 41dac79..53f10b2 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -734,6 +734,8 @@ boundtype(Type *t)
Tyenv *e;
Type *r;
+ if (t->type != Typaram)
+ return NULL;
for (e = curenv(); e; e = e->super) {
r = htget(e->tab, t);
if (r)