diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2018-05-24 13:07:11 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2018-05-24 13:07:11 +0000 |
commit | 672dfc39f1dedd8b00fb10f6b7b01671b27c0f86 (patch) | |
tree | 48c2ae6e2323e23bbbbf9593876067f4ef349d56 /gcc/ada/exp_ch6.ads | |
parent | 63a329f81c83b58694571cebb39c3ab8cec935c4 (diff) | |
download | gcc-672dfc39f1dedd8b00fb10f6b7b01671b27c0f86.zip gcc-672dfc39f1dedd8b00fb10f6b7b01671b27c0f86.tar.gz gcc-672dfc39f1dedd8b00fb10f6b7b01671b27c0f86.tar.bz2 |
[Ada] Simplify routines with a local Result variable
Local variable Result that is modified inside IF statements makes a seemingly
trivial code slightly hard to understand. This patch rewrites such a pattern.
Semantics unaffected.
2018-05-24 Piotr Trojanek <trojanek@adacore.com>
gcc/ada/
* sem_elab.adb (Non_Private_View): Simplify by removing a local Result
variable.
* sem_prag.adb (Get_Base_Subprogram): Same as above.
From-SVN: r260670
Diffstat (limited to 'gcc/ada/exp_ch6.ads')
0 files changed, 0 insertions, 0 deletions