aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sinput-l.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sinput-l.adb')
-rw-r--r--gcc/ada/sinput-l.adb10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/ada/sinput-l.adb b/gcc/ada/sinput-l.adb
index 32c2ac2..f0cce8d 100644
--- a/gcc/ada/sinput-l.adb
+++ b/gcc/ada/sinput-l.adb
@@ -151,16 +151,12 @@ package body Sinput.L is
Snew.Template := Xold;
-- For a genuine generic instantiation, assign new instance id. For
- -- inlined bodies, we retain that of the template, but we save the
- -- call location. For inherited pragmas, we simply retain that of
- -- the template.
+ -- inlined bodies or inherited pragmas, we retain that of the
+ -- template, but we save the call location.
- if Inlined_Body then
+ if Inlined_Body or Inherited_Pragma then
Snew.Inlined_Call := Sloc (Inst_Node);
- elsif Inherited_Pragma then
- null;
-
else
-- If the spec has been instantiated already, and we are now
-- creating the instance source for the corresponding body now,