Re: [PATCH] Fix ICE with -Wduplicated-branches (PR objc/80949)

2017-06-13 Thread Jakub Jelinek
On Tue, Jun 13, 2017 at 07:01:11PM +0200, Marek Polacek wrote: > -Wduplicated-branches can crash on a weird ObjC testcase that we haven't > managed to reduce, so no testcase attached. On that testcase, we end up > calling do_warn_duplicated_branches with null COND_EXPR_THEN, and the code > wasn't

[PATCH] Fix ICE with -Wduplicated-branches (PR objc/80949)

2017-06-13 Thread Marek Polacek
-Wduplicated-branches can crash on a weird ObjC testcase that we haven't managed to reduce, so no testcase attached. On that testcase, we end up calling do_warn_duplicated_branches with null COND_EXPR_THEN, and the code wasn't prepared to handle that. The fix is trivial. Eric G. verified that th