summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-04 10:02:28 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-04 10:02:28 -0700
commitd621aba39611ad76a69efff7d7628d56894b0d9d (patch)
treee667a6464adac6adc86792ffbe063e5ea078d6ef /parse
parent4926b4adbe014b44c483c8f65daf6fe6f914de44 (diff)
downloadmc-d621aba39611ad76a69efff7d7628d56894b0d9d.tar.gz
Make fsel code more generic.
Diffstat (limited to 'parse')
-rw-r--r--parse/stab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse/stab.c b/parse/stab.c
index ca68d63..3aea2af 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -304,7 +304,6 @@ void puttype(Stab *st, Node *n, Type *t)
Tydefn *td;
Type *ty;
- assert(t != NULL);
if (st->name)
setns(n, st->name);
if (st->name && t && t->name)
@@ -312,7 +311,7 @@ void puttype(Stab *st, Node *n, Type *t)
ty = gettype(st, n);
if (!ty) {
- if (hastype(st, n)) {
+ if (t && hastype(st, n)) {
t->vis = Visexport;
updatetype(st, n, t);
} else {