[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:
Bill Currie 2022-01-28 15:26:47 +09:00
parent 8d873a891f
commit ec9fa3fee8

View file

@ -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 *