git: 9front

Download patch

ref: 1e243b10f5e885defaea18f6a430148fb65e814b
parent: 5c3e9422d00e3d1a64fab53494cd9c23645bffe1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Oct 4 17:22:17 EDT 2015

vc: fix mistake.

--- a/sys/src/cmd/vc/cgen.c
+++ b/sys/src/cmd/vc/cgen.c
@@ -208,9 +208,9 @@
 				reglcgen(&nod2, l, Z);
 			else
 				nod2 = *l;
-			regalloc(&nod, r, nn);
+			regalloc(&nod, l, nn);
 			gopcode(OAS, &nod2, Z, &nod);
-			gopcode(o, l, Z, &nod);
+			gopcode(o, r, Z, &nod);
 			gopcode(OAS, &nod, Z, &nod2);
 	
 			regfree(&nod);
--