[Ada] Minor refactorings
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 19 Aug 2019 08:35:58 +0000 (08:35 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 19 Aug 2019 08:35:58 +0000 (08:35 +0000)
commit086734aed9adb3e46f362db83e9ea31571778b54
tree4d2e954e546d1ae914886d5b0264959db793fc6a
parentef1c6c0e5499a83be7f86ccf64e3eb8814137cc9
[Ada] Minor refactorings

2019-08-19  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* sem_ch12.adb (Get_Unit_Instantiation_Node): Simplify Nkind_In
membership test.
* sem.adb (Depends_On_Main): Whitespace cleanup; only assign a
local variable if needed.

From-SVN: r274645
gcc/ada/ChangeLog
gcc/ada/sem.adb
gcc/ada/sem_ch12.adb