[multiple changes]
[gcc.git] / gcc / ada / sem_ch10.adb
index 7c8a2ea048cb42b1a959b98ac80dd3f478ebab12..4db2fb74245414888601855d2e05696825053bb6 100644 (file)
@@ -1204,9 +1204,8 @@ package body Sem_Ch10 is
       --  compilation unit actions list, and analyze them.
 
       declare
-         Loc : constant Source_Ptr := Sloc (N);
-         L   : constant List_Id :=
-                 Freeze_Entity (Cunit_Entity (Current_Sem_Unit), Loc);
+         L : constant List_Id :=
+               Freeze_Entity (Cunit_Entity (Current_Sem_Unit), N);
       begin
          while Is_Non_Empty_List (L) loop
             Insert_Library_Level_Action (Remove_Head (L));