[Ada] Fix small oversight in change to Optimize_Length_Comparison
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 11 Apr 2020 13:40:24 +0000 (15:40 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 17 Jun 2020 08:14:02 +0000 (04:14 -0400)
commit940eb45810712925fbc10a39b243b7ec001085ec
treebbe62a15e56ce657a3de0f236a8dc485c7e19b02
parentac8806c4c5dad67648be37fda737a664961c1cf1
[Ada] Fix small oversight in change to Optimize_Length_Comparison

2020-06-17  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* exp_ch4.adb (Optimize_Length_Comparison): Make sure the base
types are the same when comparing Y'Last and X'Last directly.
gcc/ada/exp_ch4.adb