By declaring access parameter with non-null qualifier, the compiler
should avoid generating run-time checks in debug builds, resulting in
a tiny performance improvement.
Code cleanup; semantics is unaffected.
gcc/ada/ChangeLog:
* sem_res.adb (Type_In_P): Add non-null qualifier.
-- expanded name, verify that the operand has an interpretation with a
-- type defined in the given scope of the operator.
- function Type_In_P (Test : Kind_Test) return Entity_Id;
+ function Type_In_P (Test : not null Kind_Test) return Entity_Id;
-- Find a type of the given class in package Pack that contains the
-- operator.
-- Type_In_P --
---------------
- function Type_In_P (Test : Kind_Test) return Entity_Id is
+ function Type_In_P (Test : not null Kind_Test) return Entity_Id is
E : Entity_Id;
function In_Decl return Boolean;