summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-02-09 00:02:01 -0800
committerOri Bernstein <ori@eigenstate.org>2015-02-09 00:02:01 -0800
commit8f6e3a51a7807696a3ed778f77ae19cfd3fa5150 (patch)
tree075811b29834f73e0f46b87dd075f297bf7fdd0d /parse
parent0491437e940389b1e581eda64bec2a241330fd71 (diff)
downloadmc-8f6e3a51a7807696a3ed778f77ae19cfd3fa5150.tar.gz
Print error when we can't find symtab to merge into.
Diffstat (limited to 'parse')
-rw-r--r--parse/use.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse/use.c b/parse/use.c
index d403602..615764f 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -820,6 +820,10 @@ int loaduse(FILE *f, Stab *st, Vis vis)
s = st;
}
}
+ if (!s) {
+ printf("could not find matching package for merge: %s\n", st->_name);
+ exit(1);
+ }
tidmap = mkht(ptrhash, ptreq);
trmap = mkht(ptrhash, ptreq);
/* builtin traits */