]> gcc.gnu.org Git - gcc.git/commit - gcc/ada/exp_ch9.adb
[Ada] Reuse Has_Defaulted_Discriminants where possible
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 14 Jan 2021 20:14:06 +0000 (21:14 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 5 May 2021 08:19:06 +0000 (04:19 -0400)
commit8adc8d9b7c61f4ed9e349ebe9c091ce45e6978e4
tree051a0348f4b8051d424cb87edfc26cc9d7e1b932
parent0053d7291e9027c7455a2a402e9dbad6c99e7b8d
[Ada] Reuse Has_Defaulted_Discriminants where possible

gcc/ada/

* exp_attr.adb, exp_ch9.adb, sem_ch3.adb: Reuse
Has_Defaulted_Discriminants.
* sem_ch4.adb (Analyze_Allocator): Reuse
Has_Defaulted_Discriminants (after reordering conjuncts); remove
redundant IF statement, whose condition is implied by
Has_Defaulted_Discriminants.
* sem_util.adb (Has_Defaulted_Discriminants): Has_Discriminants
implies that the First_Discriminant is present.
(Is_Fully_Initialized_Type): Reuse Has_Defaulted_Discriminants.
gcc/ada/exp_attr.adb
gcc/ada/exp_ch9.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_util.adb
This page took 0.065159 seconds and 5 git commands to generate.