commit b50c462e9581a78db041e3224f514786a199b113
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Apr 22 15:00:47 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Fri Apr 22 15:00:47 2016 +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.

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index 32b28e6..ef5832f 100644
--- 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:

Reply via email to