[flang] Fix controlSuccessor chain for select rank construct
authorValentin Clement <clementval@gmail.com>
Sun, 6 Nov 2022 08:56:19 +0000 (09:56 +0100)
committerValentin Clement <clementval@gmail.com>
Sun, 6 Nov 2022 08:56:46 +0000 (09:56 +0100)
commitad980b570217b6906e08c7cfbc67f5ee0ec35714
tree35656411021ce5bce0c497e2d4143f5101f10298
parentbb635672b9d285db57d20b977e2603dded87df4c
[flang] Fix controlSuccessor chain for select rank construct

Represent the select rank statement + select rank case statement
the same way the select case statement and case statement are represented.
controlSuccessor was not correctly attributed to the next type guard stmt.
Similar to D137460 for select type construct.

Reviewed By: vdonaldson

Differential Revision: https://reviews.llvm.org/D137490
flang/lib/Lower/PFTBuilder.cpp