mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Fix the return symbol extraction when appending a return statement.
The code is still icky, though :P
This commit is contained in:
parent
4fd6bdae6f
commit
497db3ac81
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue