From 729aa97b799f72afdec3604f96526760701f36bc Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 30 Mar 2016 12:04:43 -0400 Subject: cleanup error handling --- ssa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ssa.c') diff --git a/ssa.c b/ssa.c index 0c163aa..201f22c 100644 --- a/ssa.c +++ b/ssa.c @@ -15,8 +15,6 @@ adduse(Tmp *tmp, int ty, Blk *b, ...) u->type = ty; u->bid = b->id; switch (ty) { - default: - diag("ssa: adduse defaulted"); case UPhi: u->u.phi = va_arg(ap, Phi *); break; @@ -25,6 +23,8 @@ adduse(Tmp *tmp, int ty, Blk *b, ...) break; case UJmp: break; + default: + die("unreachable"); } va_end(ap); } @@ -465,7 +465,7 @@ renblk(Blk *b, Name **stk, Fn *fn) if ((t=fn->tmp[t].visit)) { m = p->narg++; if (m == NPred) - diag("ssa: too many phi arguments"); + die("renblk, too many phi args"); p->arg[m] = getstk(t, b, stk); p->blk[m] = b; } -- cgit 1.4.1