mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-08 18:31:59 +00:00
[qfcc] Fix a missed local var use
I'd intended on using arg_space instead of current_func->arguments, but missed one spot.
This commit is contained in:
parent
a68aaad307
commit
8a3a39be68
1 changed files with 1 additions and 2 deletions
|
@ -1213,8 +1213,7 @@ expr_call (sblock_t *sblock, const expr_t *call, operand_t **op)
|
|||
for (int i = 0; i < num_args; i++) {
|
||||
const expr_t *a = args[i];
|
||||
const char *arg_name = va (0, ".arg%d", arg_num++);
|
||||
def_t *def = new_def (arg_name, 0, current_func->arguments,
|
||||
sc_argument);
|
||||
def_t *def = new_def (arg_name, 0, arg_space, sc_argument);
|
||||
auto arg_type = get_type (a);
|
||||
int size = type_size (arg_type);
|
||||
int alignment = arg_type->alignment;
|
||||
|
|
Loading…
Reference in a new issue