Do not change the type of the return operand.

Doing so made a mess of returning expressions. It was probably a holdover
from before getting instructions with void operand types working.
This commit is contained in:
Bill Currie 2011-02-07 10:21:54 +09:00
parent 829fb33e92
commit b629c12b31

View file

@ -761,10 +761,8 @@ statement_uexpr (sblock_t *sblock, expr_t *e)
if (!e->e.expr.e1 && !options.traditional)
opcode = "<RETURN_V>";
s = new_statement (opcode);
if (e->e.expr.e1) {
if (e->e.expr.e1)
sblock = statement_subexpr (sblock, e->e.expr.e1, &s->opa);
s->opa->type = ev_void;
}
sblock_add_statement (sblock, s);
sblock->next = new_sblock ();
sblock = sblock->next;