summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lisc/emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/emit.c b/lisc/emit.c
index f07887b..512f68d 100644
--- a/lisc/emit.c
+++ b/lisc/emit.c
@@ -407,7 +407,7 @@ emitins(Ins i, Fn *fn, FILE *f)
 		 */
 		emitf("subq %L0, %%rsp", &i, fn, f);
 		if (!req(i.to, R))
-			emitcopy(TMP(RSP), i.to, Kl, fn, f);
+			emitcopy(i.to, TMP(RSP), Kl, fn, f);
 		break;
 	}
 }