[Ada] Copy index expression trees rather than relocating them
authorEd Schonberg <schonberg@adacore.com>
Mon, 28 May 2018 08:54:18 +0000 (08:54 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 28 May 2018 08:54:18 +0000 (08:54 +0000)
commit1541ede1e18b72f77b84fdef0478e97684d14cf1
treee81527f078a261020212905d2a046b4ee07168ac
parentf167c73516dcce0e9b0f659a8ca9bdbaf10f8097
[Ada] Copy index expression trees rather than relocating them

2018-05-28  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* exp_aggr.adb (Flatten): Copy tree of expression in a component
association with a range or a set of discrete choices, rather than
relocating the node. This avoids inconsistencies in the tree when
handling nested subprograms with uplevel references for LLVM.

From-SVN: r260829
gcc/ada/ChangeLog
gcc/ada/exp_aggr.adb