summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-12 12:37:11 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-12 12:37:11 -0400
commit60feaba8c59e82c278e6cd20be08b1e61b8c1460 (patch)
treea72a584923d35a6d4550b9d43f200a10f096edb1
parentce26f8625d984499af3d17aa8501bb13770e0933 (diff)
downloadroux-60feaba8c59e82c278e6cd20be08b1e61b8c1460.tar.gz
frendlier error message in emit
-rw-r--r--emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emit.c b/emit.c
index 3822da4..5f9f604 100644
--- a/emit.c
+++ b/emit.c
@@ -351,7 +351,7 @@ emitins(Ins i, Fn *fn, FILE *f)
 			/* this linear search should really be a binary
 			 * search */
 			if (omap[o].op == NOp)
-				die("no match for %d(%d)", i.op, i.cls);
+				die("no match for %s(%d)", opdesc[i.op].name, i.cls);
 			if (omap[o].op == i.op)
 			if (omap[o].cls == i.cls
 			|| (omap[o].cls == Ki && KBASE(i.cls) == 0)