shithub: scc

Download patch

ref: 29d9c6ef41598e8eb734c3e5c1e7bd0152855ecd
parent: 73db3c729687684d80a30f3edab1eecc55b8ae5f
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Apr 22 11:00:47 EDT 2016

[cc2-qbe] Remove OREG from the cgen switch

We cannot have a register operand in a qbe tree, and since
the default is already calling abort(), it is better to
remove the OREG case.

--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -152,7 +152,6 @@
 	tp = &np->type;
 
 	switch (np->op) {
-	case OREG:
 	case OSTRING:
 		abort();
 	case OCONST: