Fix the return symbol extraction when appending a return statement.

The code is still icky, though :P
This commit is contained in:
Bill Currie 2011-02-22 09:20:52 +09:00
parent 4fd6bdae6f
commit 497db3ac81

View file

@ -1005,7 +1005,7 @@ check_final_block (sblock_t *sblock)
warning (0, "control reaches end of non-void function");
if (options.traditional || options.code.progsversion == PROG_ID_VERSION) {
expr_t *e = new_ret_expr (current_func->sym->type->t.func.type);
return_symbol = e->e.expr.e1->e.expr.e1->e.symbol;//FIXME ick
return_symbol = e->e.expr.e1->e.symbol;//FIXME ick
return_opcode = "<RETURN>";
}
if (return_symbol) {