[Ada] Do not set Current_Error_Node to a node without location
commitb64c4968c7f3eb4c5ac0c56e6f11b10419dacd0c
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 19 Feb 2022 11:20:50 +0000 (19 12:20 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 19 May 2022 14:05:33 +0000 (19 14:05 +0000)
treee560bce8a1a790f2a73fc5330727c15945ed9914
parent795f74c735627f4215f18174e761c6b5b9098449
[Ada] Do not set Current_Error_Node to a node without location

The message "No source file position information available" is displayed
in the bugbox when Current_Error_Node has no location, which is useless.

gcc/ada/

* gcc-interface/trans.cc (gnat_to_gnu): Do not set Current_Error_Node
to a node without location.
gcc/ada/gcc-interface/trans.cc