aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-loop-jam.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-05-31 13:20:46 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-07-04 07:45:59 +0000
commitaa683f5c03673210edc89d1057868f59583570ea (patch)
tree49c7e4ff1ce0e549b9e3896c37e25d4ef3c36c42 /gcc/gimple-loop-jam.cc
parent2f94aea27c0bbc2f174176bff9fece9626a5ee0a (diff)
downloadgcc-aa683f5c03673210edc89d1057868f59583570ea.zip
gcc-aa683f5c03673210edc89d1057868f59583570ea.tar.gz
gcc-aa683f5c03673210edc89d1057868f59583570ea.tar.bz2
[Ada] Small housekeeping work in Expand_N_Object_Declaration
The local function Rewrite_As_Renaming can be called twice in certain circumstances, which is both not quite safe and unnecessary, so this replaces it with a local variable whose value is computed only once. No functional changes. gcc/ada/ * exp_ch3.adb (Expand_N_Object_Declaration) <OK_To_Rename_Ref>: New local function. <Rewrite_As_Renaming>: Change to a local variable whose value is computed once and generate a call to Finalize after this is done. Simplify the code creating the renaming at the end.
Diffstat (limited to 'gcc/gimple-loop-jam.cc')
0 files changed, 0 insertions, 0 deletions