summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-03-04 00:17:19 -0800
committerOri Bernstein <ori@eigenstate.org>2019-03-14 00:20:54 -0700
commit01cf9608db97e2b4fe6bec921ab1c28201605f82 (patch)
treeb5a73222282fac3210f36020fae4aaff92ed93b3 /parse/stab.c
parent1c20d382566fcdfdf5585b1bd8f1f27d7dbd6425 (diff)
downloadmc-01cf9608db97e2b4fe6bec921ab1c28201605f82.tar.gz
Get a bit better at wrangling type bindings.
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 cc7a644..54ccfaa 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -719,7 +719,7 @@ bindtype(Tyenv *env, Type *t)
{
Bitset *visited;
- if (!t)
+ if (!t || !env)
return;
visited = mkbs();
bindtype_rec(env, t, visited);