mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
clean up the return def selection for emit_assign_expr
This commit is contained in:
parent
8ddce20949
commit
7e38a8d9a0
1 changed files with 2 additions and 3 deletions
|
@ -200,6 +200,7 @@ emit_assign_expr (int oper, expr_t *e)
|
|||
op = PR_Opcode_Find (operator, def_b, def_a, &def_void);
|
||||
emit_statement (e->line, op, def_b, def_a, 0);
|
||||
}
|
||||
return def_a;
|
||||
} else {
|
||||
def_b = emit_sub_expr (e2, 0);
|
||||
if (e1->type == ex_expr && extract_type (e1->e.expr.e1) == ev_pointer) {
|
||||
|
@ -212,10 +213,8 @@ emit_assign_expr (int oper, expr_t *e)
|
|||
op = PR_Opcode_Find (operator, def_b, def_a, &def_void);
|
||||
}
|
||||
emit_statement (e->line, op, def_b, def_a, def_c);
|
||||
return def_b;
|
||||
}
|
||||
if (def_a->type->type != ev_pointer)
|
||||
return def_a;
|
||||
return def_b;
|
||||
}
|
||||
|
||||
def_t *
|
||||
|
|
Loading…
Reference in a new issue