[Ada] Refactor repeated code for Callable and Terminated attributes
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 23 Nov 2020 23:31:49 +0000 (00:31 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 15 Dec 2020 11:41:53 +0000 (06:41 -0500)
commitafed612dc569a353dc08181446b026c6a6953f19
treeb29c101dea1913dfe1a460a30d4c43986aa6f609
parentce20ff0260c24c3da9012e4226e9eb04d01a5221
[Ada] Refactor repeated code for Callable and Terminated attributes

gcc/ada/

* sem_attr.adb (Analyze_Attribute): Merge identical code for
Callable and Terminated attributes; refactor calls to Set_Etype
occurring in both THEN and ELSE branches of an IF statement for
attribute Storage_Size.
gcc/ada/sem_attr.adb