On Fri, May 03, 2024 at 12:58:55PM +0200, Richard Biener wrote:
> When building a type and type_hash_canon returns an existing type
> avoid changing it, in particular its TYPE_CANONICAL.
> 
> Bootstrapped and tested on x86_64-unknown-linux-gnu for all languages.
> 
> OK for trunk?
> 
> Thanks,
> Richard.
> 
>       PR middle-end/114931
>       * tree.cc (build_array_type_1): Return early when type_hash_canon
>       returned an older existing type.
>       (build_function_type): Likewise.
>       (build_method_type_directly): Likewise.
>       (build_offset_type): Likewise.

LGTM, thanks.

        Jakub

Reply via email to