ref: 92dfdb5b60c5f9b08fe3073fa8d3195b4acd6204
parent: 9a4b6a26496c8bc3009d1e854f7891599761cb6a
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Sep 27 13:06:46 EDT 2016
[cc2-qbe] Fix default case in bool() We were generating code for the left child of the parameter, but we had to generate the code for the node itself.
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -362,7 +362,7 @@
default:
label2node(&ifyes, true);
label2node(&ifno, false);
- code(ASBRANCH, rhs(l, &ret), &ifyes, &ifno);
+ code(ASBRANCH, rhs(np, &ret), &ifyes, &ifno);
break;
}
}