Commit bc1f44ef by Piotr Trojanek Committed by Pierre-Marie de Rodat

[Ada] Minor refactoring in Einfo

2019-08-14  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

	* einfo.adb (Is_Generic_Actual_Subprogram): Replace repeated
	calls to Ekind with Ekind_In.

From-SVN: r274445
parent f78fac4b
2019-08-14 Piotr Trojanek <trojanek@adacore.com>
* einfo.adb (Is_Generic_Actual_Subprogram): Replace repeated
calls to Ekind with Ekind_In.
2019-08-13 Richard Sandiford <richard.sandiford@arm.com> 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
PR middle-end/91421 PR middle-end/91421
......
...@@ -2314,7 +2314,7 @@ package body Einfo is ...@@ -2314,7 +2314,7 @@ package body Einfo is
function Is_Generic_Actual_Subprogram (Id : E) return B is function Is_Generic_Actual_Subprogram (Id : E) return B is
begin begin
pragma Assert (Ekind (Id) = E_Function or else Ekind (Id) = E_Procedure); pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
return Flag274 (Id); return Flag274 (Id);
end Is_Generic_Actual_Subprogram; end Is_Generic_Actual_Subprogram;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment