mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-21 03:01:15 +00:00
[qfcc] Clean up an unnecessary use of array_expr
Simply dereferencing a pointer does not need to go through array_expr and thus collect a 0 offset that will only be constant-folded out again. Really just a minor optimization in qfcc, but at one stage in today's modification, it resulted in some unwanted aliasing chains.
This commit is contained in:
parent
8d873a891f
commit
ec9fa3fee8
1 changed files with 1 additions and 1 deletions
|
@ -2549,7 +2549,7 @@ deref_pointer_expr (expr_t *pointer)
|
|||
return pointer;
|
||||
if (pointer_type->type != ev_ptr)
|
||||
return error (pointer, "not a pointer");
|
||||
return array_expr (pointer, new_int_expr (0));
|
||||
return unary_expr ('.', pointer);
|
||||
}
|
||||
|
||||
expr_t *
|
||||
|
|
Loading…
Reference in a new issue