Re: [PATCH] c: [PR104506] Fix ICE after error due to change of type to error_mark_node

2022-02-20 Thread Richard Biener via Gcc-patches
On Fri, Feb 18, 2022 at 10:40 PM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > The problem here is we end up with an error_mark_node when calling > useless_type_conversion_p and that ICEs. STRIP_NOPS/tree_nop_conversion > has had a check for the inner type being an

[PATCH] c: [PR104506] Fix ICE after error due to change of type to error_mark_node

2022-02-18 Thread apinski--- via Gcc-patches
From: Andrew Pinski The problem here is we end up with an error_mark_node when calling useless_type_conversion_p and that ICEs. STRIP_NOPS/tree_nop_conversion has had a check for the inner type being an error_mark_node since g9a6bb3f78c96 (2000). This just adds the check also to