aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/inline.adb
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2020-01-05 23:53:42 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2020-06-03 06:01:30 -0400
commit99859ea756671ac375a231d803623394de872ece (patch)
tree8ddda9aefa88ec3daa57d0bae866dec944144a48 /gcc/ada/inline.adb
parentfe2684adda4c471b48e1cb1a69a8ea3d02bf4e1a (diff)
downloadgcc-99859ea756671ac375a231d803623394de872ece.zip
gcc-99859ea756671ac375a231d803623394de872ece.tar.gz
gcc-99859ea756671ac375a231d803623394de872ece.tar.bz2
[Ada] Iterate with procedural versions of Next_... routines where possible
2020-06-03 Piotr Trojanek <trojanek@adacore.com> gcc/ada/ * checks.adb, einfo.adb, exp_aggr.adb, exp_ch4.adb, exp_ch6.adb, exp_unst.adb, exp_util.adb, freeze.adb, inline.adb, repinfo.adb, sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch8.adb, sem_elab.adb, sem_eval.adb, sem_prag.adb, sem_res.adb, sem_smem.adb, sem_util.adb, treepr.adb: Replace uses of Next_ functions with corresponding procedures.
Diffstat (limited to 'gcc/ada/inline.adb')
-rw-r--r--gcc/ada/inline.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb
index 68cf102..b6e6a27 100644
--- a/gcc/ada/inline.adb
+++ b/gcc/ada/inline.adb
@@ -852,7 +852,7 @@ package body Inline is
return;
end if;
- Elmt := Next_Elmt (Elmt);
+ Next_Elmt (Elmt);
end loop;
Append_Elmt (Scop, To_Clean);
@@ -2787,7 +2787,7 @@ package body Inline is
Expand_Cleanup_Actions (Decl);
End_Scope;
- Elmt := Next_Elmt (Elmt);
+ Next_Elmt (Elmt);
end loop;
end Cleanup_Scopes;