[Ada] Trivial simplifications in in Walk_Library_Items
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 16 Jul 2018 14:11:30 +0000 (14:11 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Jul 2018 14:11:30 +0000 (14:11 +0000)
commitbf6ff5e5f5f45d28548d12e0cb8178b4c8903d37
tree510ec671a2cc76a7943b9affdcb6b6105dfacfa2
parentfeb7f36cad506b667a778b78d034491cb909c8c2
[Ada] Trivial simplifications in in Walk_Library_Items

Cleanup only; semantics unaffected.

2018-07-16  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* sem.adb (Walk_Library_Items): Reuse local constant.
(Is_Subunit_Of_Main): Turn condition to positive and flip the
IF-THEN-ELSE branches; avoid potentially ineffective assignment to the
Lib variable.

From-SVN: r262719
gcc/ada/ChangeLog
gcc/ada/sem.adb