[Ada] Cleanup excessive conditions in Check_Completion
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 28 May 2020 10:14:38 +0000 (12:14 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 10 Jul 2020 09:16:20 +0000 (05:16 -0400)
commita6ddbacd3ad9e3a34f77311dbb136d977c79e607
treec212e6326e5ebb4a37dd7e995b7b29eba0179cc5
parentc3b4ce9b912c243c0203b4d022d0b7ad7ba744ce
[Ada] Cleanup excessive conditions in Check_Completion

gcc/ada/

* sem_ch3.adb (Check_Completion): Refactor chained
if-then-elsif-...  statement to be more like a case
statement (note: we can't simply use case statement because of
Is_Intrinsic_Subprogram in the first condition).
gcc/ada/sem_ch3.adb