summary refs log tree commit diff
path: root/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'amd64')
-rw-r--r--amd64/emit.c3
-rw-r--r--amd64/isel.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/amd64/emit.c b/amd64/emit.c
index 46de3d9..2290d2d 100644
--- a/amd64/emit.c
+++ b/amd64/emit.c
@@ -547,6 +547,9 @@ emitins(Ins i, Fn *fn, FILE *f)
 		emitcopy(i.arg[0], i.arg[1], i.cls, fn, f);
 		emitcopy(i.arg[1], TMP(XMM0+15), i.cls, fn, f);
 		break;
+	case Oloc:
+		emitdbgloc(i.arg[0].val, f);
+		break;
 	}
 }
 
diff --git a/amd64/isel.c b/amd64/isel.c
index 3d5d5a9..277063f 100644
--- a/amd64/isel.c
+++ b/amd64/isel.c
@@ -392,6 +392,7 @@ sel(Ins i, ANum *an, Fn *fn)
 	case_Oload:
 		seladdr(&i.arg[0], an, fn);
 		goto Emit;
+	case Oloc:
 	case Ocall:
 	case Osalloc:
 	case Ocopy: