[qfcc] Make new_call_expr non-const

I really don't remember why I made it const. Although there are still
others, new_* exression calls are meant to be mutable.
This commit is contained in:
Bill Currie 2024-12-08 19:03:41 +09:00
parent 1e19335b44
commit 38c64c61b9
2 changed files with 3 additions and 3 deletions

View file

@ -702,7 +702,7 @@ expr_t *new_nil_expr (void);
\return The new args expression node.
*/
expr_t *new_args_expr (void);
const expr_t *new_call_expr (const expr_t *func, const expr_t *args,
expr_t *new_call_expr (const expr_t *func, const expr_t *args,
const type_t *ret_type);
/** Create a new value expression node.

View file

@ -2083,7 +2083,7 @@ jump_table_expr (const expr_t *table, const expr_t *index)
return branch;
}
const expr_t *
expr_t *
new_call_expr (const expr_t *func, const expr_t *args, const type_t *ret_type)
{
expr_t *branch = new_expr ();