]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Remove redundant guards in detection of unreachable code
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 30 May 2022 22:29:28 +0000 (00:29 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 5 Jul 2022 08:28:17 +0000 (08:28 +0000)
commit21d6ec4579056c97953cb22e99056e6e9a5450c4
treecaa0d5f14d00332e63a7eedb6c8f2b335cd55df3
parent948f4bc2dd05a55d53076ec72cd558302c1fc50c
[Ada] Remove redundant guards in detection of unreachable code

Routine Check_Unreachable_Code is only called on nodes belonging to a
list of statements (and it wouldn't make sense to call it on anything
else).

gcc/ada/

* sem_ch5.adb (Check_Unreachable_Code): Remove redundant guard;
the call to Present wasn't needed either.
gcc/ada/sem_ch5.adb