From 60feaba8c59e82c278e6cd20be08b1e61b8c1460 Mon Sep 17 00:00:00 2001
From: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Tue, 12 Apr 2016 12:37:11 -0400
Subject: [PATCH] frendlier error message in emit

---
 emit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)