[Ada] Remove tiny and incomplete optimization for unset references
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 20 Jan 2022 21:37:30 +0000 (22:37 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 10 May 2022 08:19:26 +0000 (08:19 +0000)
commit8cec0688df7258e16b7c9d2614e16b5b9346da1d
tree74b81085d300d32136e371bb188a66efb9ffe89c
parentea22ec90df9649465b172269027fff8f0750047b
[Ada] Remove tiny and incomplete optimization for unset references

Code cleanup; behaviour is unaffected.

gcc/ada/

* sem_warn.adb (Check_Unset_Reference): The early test was only
saving time of calls to Original_Node, Comes_From_Source and
Nkind, which are all quick and cheap.
gcc/ada/sem_warn.adb