[Ada] Handle non-standard booleans in if_expression condition
authorAlexandre Oliva <oliva@adacore.com>
Wed, 29 Dec 2021 07:10:45 +0000 (04:10 -0300)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 10 May 2022 08:19:29 +0000 (08:19 +0000)
commit81d33c5c9211dd65b2ffd29424e403582e4542f9
tree3fc515340533ea2d9636750906f5a34301a2d43a
parenta77ab90ed3a3077a1e9320ac43b32c850d7c525f
[Ada] Handle non-standard booleans in if_expression condition

We failed to call Adjust_Condition for the condition expression of an
if_expression, so non-standard booleans were expanded like standard
booleans, disregarding representation clauses. Fixed.

gcc/ada/

* exp_ch4.adb (Expand_N_If_Expression): Call Adjust_Condition to
handle non-standard booleans.
gcc/ada/exp_ch4.adb