commit c44bc11001d7260f04a6375711c4b2e25a75b8c1
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Aug 12 13:47:22 2016 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
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
@@ -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);