[flang] Fix controlSuccessor chain for select type construct
authorValentin Clement <clementval@gmail.com>
Sat, 5 Nov 2022 14:10:40 +0000 (15:10 +0100)
committerValentin Clement <clementval@gmail.com>
Sat, 5 Nov 2022 14:11:30 +0000 (15:11 +0100)
commit4c52a9879bfd978f31ed3c8b1e4e700b764bcf31
tree1974811ce33b1f3a31a452cff80860509dd6860b
parentb781ca4df65bcdd72abc121e30d2fc743a25720c
[flang] Fix controlSuccessor chain for select type construct

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

Reviewed By: PeteSteinfeld, vdonaldson

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