aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch8.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sem_ch8.adb')
-rw-r--r--gcc/ada/sem_ch8.adb24
1 files changed, 11 insertions, 13 deletions
diff --git a/gcc/ada/sem_ch8.adb b/gcc/ada/sem_ch8.adb
index 80950b8..0e75bb4 100644
--- a/gcc/ada/sem_ch8.adb
+++ b/gcc/ada/sem_ch8.adb
@@ -9831,22 +9831,20 @@ package body Sem_Ch8 is
Decl : Node_Id;
begin
- if Present (L) then
- Decl := First (L);
- while Present (Decl) loop
- if Nkind (Decl) = N_Use_Package_Clause then
- Chain_Use_Clause (Decl);
- Use_One_Package (Decl, Name (Decl));
+ Decl := First (L);
+ while Present (Decl) loop
+ if Nkind (Decl) = N_Use_Package_Clause then
+ Chain_Use_Clause (Decl);
+ Use_One_Package (Decl, Name (Decl));
- elsif Nkind (Decl) = N_Use_Type_Clause then
- Chain_Use_Clause (Decl);
- Use_One_Type (Subtype_Mark (Decl));
+ elsif Nkind (Decl) = N_Use_Type_Clause then
+ Chain_Use_Clause (Decl);
+ Use_One_Type (Subtype_Mark (Decl));
- end if;
+ end if;
- Next (Decl);
- end loop;
- end if;
+ Next (Decl);
+ end loop;
end Set_Use;
-----------------------------