commit | a3e75c1491cd2d501081210925a89a65b1c1e5e5 | [log] [tgz] |
---|---|---|
author | Jason Merrill <jason@redhat.com> | Thu Nov 25 10:50:59 2021 -0500 |
committer | Jason Merrill <jason@redhat.com> | Tue Nov 30 16:05:24 2021 -0500 |
tree | 9efcd2c09b97a67d67d1ada9daa470d19b0a8c91 | |
parent | 91c26004037db689954318d3d1c801eea18d45f4 [diff] |
c++: don't fold away 'if' with constant condition richi's recent unreachable code warning experiments had trouble with the C++ front end folding away an 'if' with a constant condition. Let's do less folding at the statement level. gcc/cp/ChangeLog: * cp-gimplify.c (genericize_if_stmt): Always build a COND_EXPR.