Re: [C++ Patch] Fix finish_switch_cond location

2019-08-23 Thread Jason Merrill
On 8/23/19 2:54 AM, Paolo Carlini wrote: Hi, a rather straightforward tweak. We could imagine much more heavily reworking the code to avoid saving the original condition (build_expr_type_conversion return NULL_TREE upon error), I'm not sure if it's worth it. Tested x86_64-linux. OK. Jason

[C++ Patch] Fix finish_switch_cond location

2019-08-23 Thread Paolo Carlini
Hi, a rather straightforward tweak. We could imagine much more heavily reworking the code to avoid saving the original condition (build_expr_type_conversion return NULL_TREE upon error), I'm not sure if it's worth it. Tested x86_64-linux. Thanks, Paolo. /cp 2019-08