[hackers] [scc] [cc2-qbe] Fix ORET || Roberto E. Vargas Caballero
commit a879848adf3c6b62dc033994c2ccb22849084697
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon May 9 17:18:43 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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:
Received on Mon May 09 2016 - 17:20:30 CEST
This archive was generated by hypermail 2.3.0
: Mon May 09 2016 - 17:24:19 CEST