aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2023-11-11 20:33:28 -0800
committerAndrew Pinski <quic_apinski@quicinc.com>2023-12-04 09:30:53 -0800
commit886f256ce3be4aa85f30af88558f0dfcb8003300 (patch)
treed36a298aa209cd6aa3c491595293c94f6b8b3f10 /gcc/cp/constexpr.cc
parentb544ec681bdc9c48587d2e014f9559674097738a (diff)
downloadgcc-886f256ce3be4aa85f30af88558f0dfcb8003300.zip
gcc-886f256ce3be4aa85f30af88558f0dfcb8003300.tar.gz
gcc-886f256ce3be4aa85f30af88558f0dfcb8003300.tar.bz2
MATCH: Fix zero_one_valued_p's convert pattern
While working on PR 111972, I was getting a regression due to zero_one_valued_p matching a signed 1 bit integer when it came to convert. This patch fixes that by checking the outer type too. Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * match.pd (zero_one_valued_p): For convert make sure type is not a signed 1-bit integer. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions