mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 01:42:04 +00:00
[qfcc] Dereference explicit intrinsic arg references
The dereferencing was done for implicit intrinsic args, but I had forgotten about it for explicit intrinsics. Now the scalar `a` version of `mix` works.
This commit is contained in:
parent
498288b630
commit
495a1c7994
1 changed files with 3 additions and 0 deletions
|
@ -273,6 +273,9 @@ build_intrinsic_call (const expr_t *expr, symbol_t *fsym, const type_t *ftype,
|
|||
current_symtab = func->locals;
|
||||
for (int i = 0; i < extra_count; i++) {
|
||||
extra_args[i] = expr_process (extra_args[i], ctx);
|
||||
if (is_reference (get_type (extra_args[i]))) {
|
||||
extra_args[i] = pointer_deref (extra_args[i]);
|
||||
}
|
||||
}
|
||||
current_symtab = scope;
|
||||
list_gather (&call->intrinsic.operands, extra_args, extra_count);
|
||||
|
|
Loading…
Reference in a new issue