summary refs log tree commit diff
path: root/rega.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-30 12:04:43 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-31 09:15:50 -0400
commit729aa97b799f72afdec3604f96526760701f36bc (patch)
tree35761b52e15fe48abe779a07766852717e4e9d6c /rega.c
parentbeec05cd3b6c85af3f3cc8956f4583d9027d569d (diff)
downloadroux-729aa97b799f72afdec3604f96526760701f36bc.tar.gz
cleanup error handling
Diffstat (limited to 'rega.c')
-rw-r--r--rega.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rega.c b/rega.c
index 7f8edcf..0f1ad17 100644
--- a/rega.c
+++ b/rega.c
@@ -125,7 +125,7 @@ ralloc(RMap *m, int t)
 		for (r=r0; r<r1; r++)
 			if (!bshas(m->b, r))
 				goto Found;
-		diag("rega: no more regs");
+		die("no more regs");
 	}
 Found:
 	radd(m, t, r);
@@ -170,7 +170,7 @@ pmadd(Ref src, Ref dst, int k)
 		cpm = cpm * 2 + 16;
 		pm = realloc(pm, cpm * sizeof pm[0]);
 		if (!pm)
-			diag("pmadd: out of memory");
+			die("pmadd, out of memory");
 	}
 	pm[npm].src = src;
 	pm[npm].dst = dst;