diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-30 12:04:43 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-03-31 09:15:50 -0400 |
commit | 729aa97b799f72afdec3604f96526760701f36bc (patch) | |
tree | 35761b52e15fe48abe779a07766852717e4e9d6c /ssa.c | |
parent | beec05cd3b6c85af3f3cc8956f4583d9027d569d (diff) | |
download | roux-729aa97b799f72afdec3604f96526760701f36bc.tar.gz |
cleanup error handling
Diffstat (limited to 'ssa.c')
-rw-r--r-- | ssa.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |