summaryrefslogtreecommitdiff
path: root/parse/use.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-08-20 19:52:05 -0700
committerOri Bernstein <ori@eigenstate.org>2017-08-20 19:52:05 -0700
commit73e2c5b1664a814e363364921270ae365473e622 (patch)
tree2f456d9420766a11efcd46dcba27acd121e3cb18 /parse/use.c
parent6e4bf0cdecce71d9a839c1e7f6a42409c2f9d961 (diff)
downloadmc-73e2c5b1664a814e363364921270ae365473e622.tar.gz
Fix a few bugs.
Diffstat (limited to 'parse/use.c')
-rw-r--r--parse/use.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/parse/use.c b/parse/use.c
index bb5d76a..09683f9 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -840,8 +840,11 @@ fixtraitmappings(Stab *st)
}
if (traitfix[i].dest)
*traitfix[i].dest = tr;
- if (traitfix[i].type)
+ if (traitfix[i].type && traitfix[i].type->type == Typaram) {
+ if (!traitfix[i].type->trneed)
+ traitfix[i].type->trneed = mkbs();
bsput(traitfix[i].type->trneed, tr->uid);
+ }
}
free(traitfix);