summary refs log tree commit diff
path: root/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'amd64')
-rw-r--r--amd64/sysv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amd64/sysv.c b/amd64/sysv.c
index 286300a..3125069 100644
--- a/amd64/sysv.c
+++ b/amd64/sysv.c
@@ -467,10 +467,10 @@ selpar(Fn *fn, Ins *i0, Ins *i1)
 		}
 		r = rarg(a->cls[0], &ni, &ns);
 		if (i->op == Oparc) {
-			emit(Ocopy, Kl, a->ref[0], r, R);
+			emit(Ocopy, a->cls[0], a->ref[0], r, R);
 			if (a->size > 8) {
 				r = rarg(a->cls[1], &ni, &ns);
-				emit(Ocopy, Kl, a->ref[1], r, R);
+				emit(Ocopy, a->cls[1], a->ref[1], r, R);
 			}
 		} else
 			emit(Ocopy, i->cls, i->to, r, R);