shithub: scc

Download patch

ref: 57772ff4fa151bf3de032d14eb5c0c13f4174f98
parent: 2abe3c04e394a50485d96cc1063bdeae6fdeaca0
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Aug 17 11:53:51 EDT 2016

[cc2-qbe] Add support for OADDR

In this case we only have to call to lhs() because
we do not want to load the result of the operation.

--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -507,6 +507,8 @@
 		return rhs(np, ret);
 	case OPTR:
 		return load(rhs(l, &aux1), ret);
+	case OADDR:
+		return lhs(l, ret);
 	default:
 		abort();
 	}