scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit c44bc11001d7260f04a6375711c4b2e25a75b8c1
parent 3f64cb4dcdcb644d411961c445f7899e1d0c61b2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 12 Aug 2016 13:47:22 +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().

Diffstat:
Mcc2/arch/qbe/cgen.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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);