[Ada] Fix incorrect insertion of post-call actions in if-expression
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 4 Mar 2020 08:32:03 +0000 (09:32 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 10 Jun 2020 13:34:55 +0000 (09:34 -0400)
commit895cf059f064bb0c86c333f9bd05fc95fa9e8d56
tree8493970418911bdfb0e2b4e1c2226c130f8d74b5
parentc392a001491bd8603556bd922d073a96b6df8724
[Ada] Fix incorrect insertion of post-call actions in if-expression

2020-06-10  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* exp_ch6.adb (Insert_Post_Call_Actions): Deal with the context
of an if-expression and with a call written in prefixed notation.
gcc/ada/exp_ch6.adb