[Ada] Refine previous change for -gnatn and LLVM
authorArnaud Charlet <charlet@adacore.com>
Wed, 18 Sep 2019 08:31:27 +0000 (08:31 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 18 Sep 2019 08:31:27 +0000 (08:31 +0000)
2019-09-18  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* exp_unst.adb (Unnest_Subprograms): Refine previous change.

From-SVN: r275837

gcc/ada/ChangeLog
gcc/ada/exp_unst.adb

index b327857a8fee6078ab516316a10c3da3bd449662..75ceaf1796c9341caa544059f6604486f006cdd1 100644 (file)
@@ -1,3 +1,7 @@
+2019-09-18  Arnaud Charlet  <charlet@adacore.com>
+
+       * exp_unst.adb (Unnest_Subprograms): Refine previous change.
+
 2019-09-17  Claire Dross  <dross@adacore.com>
 
        * libgnat/a-cofuma.ads, libgnat/a-cofuma.adb (Remove): New
index 7cc9a6a4231a7274e5d6c132e088c65fed925c99..8c492bc9f2263c230c0404d2b97e9346297c93d5 100644 (file)
@@ -2592,9 +2592,9 @@ package body Exp_Unst is
          then
             Subp_Body := Parent (Declaration_Node
                                    (Corresponding_Body (Subp_Body)));
-            Unnest_Subprogram (Subp, Subp_Body, For_Inline => True);
          end if;
 
+         Unnest_Subprogram (Subp, Subp_Body, For_Inline => True);
          Next_Inlined_Subprogram (Subp);
       end loop;
    end Unnest_Subprograms;