ref: 472b891a54602e41655751be5a3d8331b46c6aba
parent: 39a70612ceb24d4fa3ffad156fa06cad9b8589ef
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jun 17 10:51:29 EDT 2016
[cc2-qbe] Fix * operator We only have to force a load, and the correct node is not the current node, but the left child.
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -458,9 +458,8 @@
return np;
case OPTR:
load(np, LOADL);
- /* FIXME: The type of the loaded value is not np->type */
load(np, LOADL|FORCE);
- return tmpnode(np);
+ return np->left;
case OCPL:
case ONEG:
case OINC: