commit a879848adf3c6b62dc033994c2ccb22849084697
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Mon May 9 17:18:43 2016 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Mon May 9 17:18:43 2016 +0200
[cc2-qbe] Fix ORET
The ORET expression was passed to code() like destine, instead like
source.
diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index 4590bc6..704a7c4 100644
--- 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: