[flang] Control flow with empty select case blocks
authorV Donaldson <vdonaldson@nvidia.com>
Thu, 8 Sep 2022 04:22:59 +0000 (21:22 -0700)
committerV Donaldson <vdonaldson@nvidia.com>
Thu, 8 Sep 2022 17:07:07 +0000 (10:07 -0700)
commit78c40b3c53ccfa272528d7d4f03d5f25d0b7806e
tree5bbc4c4f66f05d5a3529857dc77446b4f56a5fed
parent87a6ccf0948c3ed22925ac0319bfa451fa97accb
[flang] Control flow with empty select case blocks

Fix control flow for empty select case blocks such as:

  select case (2)
    case (1)
      print*, '1'
    case (2)
    ! print*, '2'
    case default
      print*, 'default'
  end select
flang/lib/Lower/Bridge.cpp
flang/test/Lower/select-case-statement.f90