[hackers] [scc/qbe] [cc2-qbe] Fix type of returned node in OOR || Roberto E. Vargas Caballero
 
commit c44bc11001d7260f04a6375711c4b2e25a75b8c1
Author:     Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Aug 12 13:47:22 2016 +0200
Commit:     Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Aug 12 13:47:22 2016 +0200
    [cc2-qbe] Fix type of returned node in OOR
    
    The type of the node is int32type but it has not set
    and it was generating an abort().
diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index 5e39694..100417e 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -260,6 +260,7 @@ rhs(Node *np, Node *ret)
                 true = newlabel();
                 false = newlabel();
                 phi = label2node(newlabel());
+		ret->type = int32type;
                 tmpnode(ret);
 
                 bool(np, true, false);
Received on Fri Aug 12 2016 - 14:07:40 CEST
This archive was generated by hypermail 2.3.0
: Fri Aug 12 2016 - 14:12:16 CEST