shithub: scc

Download patch

ref: a006d3f1e65505e768fe9cfffd872db5bfb607bf
parent: 3650d591bcf2c9e4584b12228dd9f2c6f6145b8a
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Apr 15 10:42:39 EDT 2016

[cc2-qbe] Fix OASSIG in cgen.c

The order of the lhs and rhs of the assignation was wrong

--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -96,7 +96,7 @@
 	case ODEC:
 		abort();
 	case OASSIG:
-		code(op, l, l, r);
+		code(op, l, r, NULL);
 		return r;
 	case OCALL:
 	case OFIELD: