]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Change Present_Expr field type to Uint
authorRichard Kenner <kenner@adacore.com>
Wed, 18 Jan 2023 22:45:15 +0000 (17:45 -0500)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 16 May 2023 08:30:56 +0000 (10:30 +0200)
We want the field to be initialized to No_Uint because we want to be
able to test in GNAT LLVM whether we've already set it so we can be
sure we only set it once.

gcc/ada/

* gen_il-gen-gen_nodes.adb (Present_Expr): Type is now Uint.

gcc/ada/gen_il-gen-gen_nodes.adb

index 389c9a0f005c0caf28f431cdb4c44f4934c7c8ce..44da1d1d924ba5c5b34c77ccc852ff0b0a163841 100644 (file)
@@ -1604,7 +1604,7 @@ begin -- Gen_IL.Gen.Gen_Nodes
         Sm (Dcheck_Function, Node_Id),
         Sm (Enclosing_Variant, Node_Id),
         Sm (Has_SP_Choice, Flag),
-        Sm (Present_Expr, Valid_Uint)));
+        Sm (Present_Expr, Uint)));
 
    Cc (N_Variant_Part, Node_Kind,
        (Sy (Name, Node_Id, Default_Empty),