shithub: scc

Download patch

ref: 24a097c15570c35a997628d0f0c553261d7254a7
parent: a4fa945f60bc687372451bf44e75d4d11f9486b2
author: Lucas Gabriel Vuotto <l.vuotto92@gmail.com>
date: Wed Apr 13 06:46:38 EDT 2016

[cc2-qbe] Fix typo in variable name

Signed-off-by: Lucas Gabriel Vuotto <l.vuotto92@gmail.com>

--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -156,7 +156,7 @@
 	if (np->address > 10)
 		return np;
 	if (lp)
-		rp->complex = lp->complex;
+		np->complex = lp->complex;
 	if (rp) {
 		int d = np->complex - rp->complex;
 
--