summaryrefslogtreecommitdiff
path: root/src/cmd/gc/walk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gc/walk.c')
-rw-r--r--src/cmd/gc/walk.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c
index e68833c42..685267c27 100644
--- a/src/cmd/gc/walk.c
+++ b/src/cmd/gc/walk.c
@@ -1094,8 +1094,7 @@ loop:
goto ret;
nottop:
- dump("bad top", n);
- fatal("walktype: top=%d %O", top, n->op);
+ yyerror("didn't expect %O here", n->op);
goto ret;
badt:
@@ -2360,8 +2359,7 @@ shape:
return N;
nottop:
- dump("bad top", n);
- fatal("mapop: top=%d %O", top, n->op);
+ yyerror("didn't expect %O here", n->op);
return N;
}