summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-12-19 22:34:59 -0500
committerOri Bernstein <ori@eigenstate.org>2013-12-19 22:34:59 -0500
commit26d9afbaac70ccfc12c91f54b05166d38769284f (patch)
treec8ef304c6b1019e166498b1a75e69aa923f09d2d /parse/dump.c
parentaab1653d3e737964ae91755448b23c8f9b2bbfc5 (diff)
downloadmc-26d9afbaac70ccfc12c91f54b05166d38769284f.tar.gz
Push and pop stabs correctly when loading usefiles.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 32db318..6961e4b 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -176,6 +176,8 @@ static void outnode(Node *n, FILE *fd, int depth)
fprintf(fd, " (name = %s, islocal = %d)\n", n->use.name, n->use.islocal);
break;
case Nexpr:
+ if (exprop(n) == Ovar)
+ assert(decls[n->expr.did]->decl.did == n->expr.did);
ty = tystr(n->expr.type);
if (n->expr.type)
tid = n->expr.type->tid;