summaryrefslogtreecommitdiff
path: root/sys/src/cmd/8c/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/8c/cgen.c')
-rw-r--r--sys/src/cmd/8c/cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/8c/cgen.c b/sys/src/cmd/8c/cgen.c
index 070155fb7..cd0288bba 100644
--- a/sys/src/cmd/8c/cgen.c
+++ b/sys/src/cmd/8c/cgen.c
@@ -1669,7 +1669,7 @@ copy:
nn->type = types[TLONG];
regialloc(&nod1, nn, Z);
lcgen(nn, &nod1);
- regsalloc(&nod2, nn);
+ regsalloc(&nod2, &nod1);
nn->type = t;
gins(AMOVL, &nod1, &nod2);