[Ada] Minor reuse Is_Protected_Component
authorPiotr Trojanek <trojanek@adacore.com>
Sat, 14 Nov 2020 22:26:05 +0000 (23:26 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 Nov 2020 14:16:20 +0000 (09:16 -0500)
commit348050563099e7b73e37d28d10beac3a7dec1a86
treeca90a4afe04b598c5698bd9967234a7a73f3be3d
parentc1a69c98717d9c63ffde67746c56243d530c9109
[Ada] Minor reuse Is_Protected_Component

gcc/ada/

* lib-xref.adb (Generate_Reference): Fix reference to
Analyze_Assignment.
* sem_ch5.adb (Diagnose_Non_Variable_Lhs): Reuse existing
utility function.
gcc/ada/lib-xref.adb
gcc/ada/sem_ch5.adb