]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Remove redundant guard for call to List_Length with a No_List
authorPiotr Trojanek <trojanek@adacore.com>
Sun, 29 May 2022 16:06:22 +0000 (18:06 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 5 Jul 2022 08:28:17 +0000 (08:28 +0000)
commit948f4bc2dd05a55d53076ec72cd558302c1fc50c
tree778dc5b9c7cb06c9e666dfb5c83fa5ec0f2108d0
parent70bb3298c2b4eaec19490ada47dbc3d7307002af
[Ada] Remove redundant guard for call to List_Length with a No_List

Code cleanup related to a new detection of uninitialised local scalar
objects; semantics is unaffected.

gcc/ada/

* sem_ch5.adb (Analyze_Block_Statement): Call to List_Length with
No_List is safe and will return zero.
gcc/ada/sem_ch5.adb