[Ada] Avoid repeated computing of type of expression functions

Pierre-Marie de Rodat derodat@adacore.com
Fri Jul 9 12:37:59 GMT 2021


Cleanup related to handing of static expression functions in GNATprove.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* sem_ch6.adb (Analyze_Expression_Function): Add variable to
	avoid repeated calls to Etype.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 2693 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210709/bddd69ab/attachment-0001.bin>


More information about the Gcc-patches mailing list