[hackers] [scc] [cc2-qbe] Remove OREG from the cgen switch || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 22 Apr 2016 15:02:00 +0200 (CEST)

commit b50c462e9581a78db041e3224f514786a199b113
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Apr 22 15:00:47 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -152,7 +152,6 @@ cgen(Node *np)
         tp = &np->type;
 
         switch (np->op) {
- case OREG:
         case OSTRING:
                 abort();
         case OCONST:
Received on Fri Apr 22 2016 - 15:02:00 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 22 2016 - 15:12:21 CEST