]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix small inaccuracy in previous change
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 16 Feb 2024 09:30:17 +0000 (10:30 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 14 May 2024 08:19:59 +0000 (10:19 +0200)
commita252022d9a1f285e471d8b3b37fe645244919ab5
tree8d5eb8623a15c12e1081be1f7d4e69c900fd5277
parent13d8374188eea21d56603135b6af254599c9e4b3
ada: Fix small inaccuracy in previous change

The call to Build_Allocate_Deallocate_Proc must occur before the special
accessibility check for class-wide allocation is generated, because this
check comes with cleanup code.

gcc/ada/

* exp_ch4.adb (Expand_Allocator_Expression): Move the first call to
Build_Allocate_Deallocate_Proc up to before the accessibility check.
gcc/ada/exp_ch4.adb