[Ada] Avoid unnecessary (re)assignments in Make_Info
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 23 Jun 2020 17:50:18 +0000 (19:50 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 15 Oct 2020 09:39:11 +0000 (05:39 -0400)
commite1e129684cb791c6fe508737a959c84b5f6dfbfa
tree64983785ed804790c188bf69872cdfcab1a5d154
parentfcbac1b3344c0e6376b11b0f555dcfb908bbf775
[Ada] Avoid unnecessary (re)assignments in Make_Info

gcc/ada/

* sem_ch3.adb (Array_Type_Declaration): Refine type of a local
variable.
(Make_Index): Simplify to avoid assignment with a type entity
and then backtracking by reassigning to Empty; remove excessive
whitespace.
* sem_ch9.adb (Analyze_Entry_Body): Remove extra parens.
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch9.adb