commit b50c462e9581a78db041e3224f514786a199b113
parent 97ce08e631def638abe4aa08e45378e71bcdcf5a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 22 Apr 2016 15:00:47 +0200
[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.
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
@@ -152,7 +152,6 @@ cgen(Node *np)
tp = &np->type;
switch (np->op) {
- case OREG:
case OSTRING:
abort();
case OCONST: