]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Minor tweak in condition
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 16 Mar 2023 17:38:20 +0000 (18:38 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 26 May 2023 07:29:16 +0000 (09:29 +0200)
gcc/ada/

* sem_util.adb (Compile_Time_Constraint_Error): Test the Ekind.

gcc/ada/sem_util.adb

index aabd01747fc39d9da64ec3389bbaccfb859a44dd..ea5be2ff4b56a3ccc331863b6cf25a448909eb4d 100644 (file)
@@ -6110,7 +6110,7 @@ package body Sem_Util is
 
                      Conc_Typ : constant Entity_Id :=
                        (if Present (Init_Proc_Type)
-                          and then Init_Proc_Type in E_Record_Type_Id
+                          and then Ekind (Init_Proc_Type) = E_Record_Type
                         then Corresponding_Concurrent_Type (Init_Proc_Type)
                         else Empty);