]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ada/sem_ch4.adb
[Ada] Reuse Is_Package_Or_Generic_Package where possible
[thirdparty/gcc.git] / gcc / ada / sem_ch4.adb
index 591011252aabeb6b5719ca6e33b75708f723d0ab..702f2650ea6032e9eff2421f443426abd7f65d74 100644 (file)
@@ -9480,7 +9480,7 @@ package body Sem_Ch4 is
             Type_Scope : constant Entity_Id := Scope (T);
             Op_List    : Elist_Id := Primitive_Operations (T);
          begin
-            if Ekind_In (Type_Scope, E_Package, E_Generic_Package)
+            if Is_Package_Or_Generic_Package (Type_Scope)
               and then ((In_Package_Body (Type_Scope)
               and then In_Open_Scopes (Type_Scope)) or else In_Instance_Body)
             then