[Ada] Simplify analysis of assignment statements
authorPiotr Trojanek <trojanek@adacore.com>
Sun, 15 Nov 2020 00:21:41 +0000 (01:21 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 Nov 2020 14:16:21 +0000 (09:16 -0500)
commitad6be99f1ac24607e9c49cdbc9c300d76007f0b6
treecda6468fa75ea0fe7442ae215d553d83fa54ea9b
parent348050563099e7b73e37d28d10beac3a7dec1a86
[Ada] Simplify analysis of assignment statements

gcc/ada/

* sem_ch5.adb (Set_Assignment_Type): Combine calls to Ekind
using membership test.
(Should_Transform_BIP_Assignment): Replace assignment to a
"Result" variable with simple return statements; avoid repeated
calls to Unqual_Conv by declaring a local constant.
gcc/ada/sem_ch5.adb