Fix problematic conversion to boolean type
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 7 Dec 2020 09:17:20 +0000 (10:17 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 7 Dec 2020 09:18:15 +0000 (10:18 +0100)
commit090abb0f51b5cf8ce46fb686bc4b968f6e2055be
tree9a282e3945c6eb09c674d59bc95d61f05808f1c1
parentbf615bf65a0035cac3d4ac229e6413aad3b1d44a
Fix problematic conversion to boolean type

The new ranger exposed a problematic conversion to boolean type.

gcc/ada/ChangeLog:
* gcc-interface/utils.c (convert) <INTEGER_TYPE>: Call fold_convert
in the cases where convert_to_integer is not called.
<BOOLEAN_TYPE>: Call fold_convert instead of convert_to_integer.
gcc/ada/gcc-interface/utils.c