[Ada] Fix recent regression on _Master declaration
authorJavier Miranda <miranda@adacore.com>
Fri, 22 May 2020 19:29:57 +0000 (15:29 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 8 Jul 2020 14:55:55 +0000 (10:55 -0400)
commitd387808d8bd4e6eda08dd5f1661c1c70a6c9a1b2
tree32f03c0c948b135e89b0597fda1233fcb4de22e4
parenteafbde5131d2926fdc48b1c663d03865c9a37302
[Ada] Fix recent regression on _Master declaration

gcc/ada/

* exp_ch9.adb
(Build_Class_Wide_Master): Insert the declaration of _Master
before its use; required to avoid assertion failure in the
backend.
gcc/ada/exp_ch9.adb