[Ada] Simplify call to Unique_Defining_Entity on protected entry declarations
commit7ae795f7b62b8cf30291f4b9ebf6f17c397bb9c4
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 31 May 2018 10:46:34 +0000 (31 10:46 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 31 May 2018 10:46:34 +0000 (31 10:46 +0000)
treebb217b5e5a074930e9398215d171aea7c28c73cb
parent7366d29a546c6ea55a6fe8d2a131dc16c892f4b3
[Ada] Simplify call to Unique_Defining_Entity on protected entry declarations

Calling Unique_Defining_Entity on protectected entry declarations is
equivalent to calling a simpler Defining_Entity; use the simpler routine.

Simplification only; semantics unaffected, so no test provided.

2018-05-31  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* sem_prag.adb (Analyze_Pragma): Replace call to Unique_Defining_Entity
with a semantically equivalent call to Defining_Entity.

From-SVN: r261003
gcc/ada/ChangeLog
gcc/ada/sem_prag.adb