aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/dump.c')
-rw-r--r--bootstrap/dump.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bootstrap/dump.c b/bootstrap/dump.c
index 8c34716..157b12f 100644
--- a/bootstrap/dump.c
+++ b/bootstrap/dump.c
@@ -123,7 +123,7 @@ tok2str(struct tok tok) {
if (tok.t == TKintlit) {
snprintf(buf, sizeof buf - 1, "`%llu'", (unsigned long long)tok.ilit.i);
- } else if (tok.t == TKident || tok.t == TKmacident) {
+ } else if (tok.t == TKident || tok.t == TKmacident || tok.t == TKlabel) {
snprintf(buf, sizeof buf - 1, "`%s'", tok.str);
} else if (tok.t == TKgensym) {
snprintf(buf, sizeof buf - 1, "`$%s'", tok.str);
@@ -385,8 +385,7 @@ dumpstmt(const struct stmt *stmt, int ws) {
else
epri("%wreturn;\n", ws);
break;
- case Seuswitch:
- break;
+ default:assert(0);
}
}
@@ -439,7 +438,7 @@ dumpdecl(const struct decl *decl, int ws) {
}
epri("}\n");
break;
- case Dtepl:
+ case Dtepl: case Dlabel:
assert(0);
}
}