aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gnatname.adb
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2018-05-24 13:07:11 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2018-05-24 13:07:11 +0000
commit672dfc39f1dedd8b00fb10f6b7b01671b27c0f86 (patch)
tree48c2ae6e2323e23bbbbf9593876067f4ef349d56 /gcc/ada/gnatname.adb
parent63a329f81c83b58694571cebb39c3ab8cec935c4 (diff)
downloadgcc-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/gnatname.adb')
0 files changed, 0 insertions, 0 deletions