scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit a879848adf3c6b62dc033994c2ccb22849084697
parent 3913894ebfafc5ed3139e45c309767909f01e81c
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  9 May 2016 17:18:43 +0200

[cc2-qbe] Fix ORET

The ORET expression was passed to code() like destine, instead like
source.

Diffstat:
cc2/arch/qbe/cgen.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -366,7 +366,7 @@ cgen(Node *np) deltree(ifno); return NULL; case ORET: - code(ASRET, load(np, LOADL), NULL, NULL); + code(ASRET, NULL, load(np, LOADL), NULL); return NULL; case OCASE: case ODEFAULT: