summary refs log tree commit diff
path: root/amd64
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-03-08 15:33:21 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-03-08 15:36:26 +0100
commit349794f3e4f11e4cc34a501ba935a2a305229738 (patch)
tree3e858a2d3dbf8b4ad43cc5f2f40a8790b37b99b6 /amd64
parent3d294346ab168fd0b12761711fbe667e47fd644e (diff)
downloadroux-349794f3e4f11e4cc34a501ba935a2a305229738.tar.gz
cosmetics
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 7dc5981..7287f41 100644
--- a/amd64/sysv.c
+++ b/amd64/sysv.c
@@ -127,7 +127,7 @@ selret(Blk *b, Fn *fn)
 		if (aret.inmem) {
 			assert(rtype(fn->retr) == RTmp);
 			emit(Ocopy, Kl, TMP(RAX), fn->retr, R);
-			blit(fn->retr, 0, r0, aret.type->size, fn);
+			blit0(fn->retr, r0, aret.type->size, fn);
 			ca = 1;
 		} else {
 			ca = retr(reg, &aret);
@@ -413,7 +413,7 @@ selcall(Fn *fn, Ins *i0, Ins *i1, RAlloc **rap)
 		if (i->op == Oargc) {
 			if (a->align == 4)
 				off += off & 15;
-			blit(r, off, i->arg[1], a->type->size, fn);
+			blit(r, off, i->arg[1], 0, a->type->size, fn);
 		} else {
 			r1 = newtmp("abi", Kl, fn);
 			emit(Ostorel, 0, R, i->arg[0], r1);