[flang][build] Fix build issue reported on recent commit
authorPeter Klausler <pklausler@nvidia.com>
Mon, 13 Feb 2023 22:22:02 +0000 (14:22 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 13 Feb 2023 22:24:18 +0000 (14:24 -0800)
commit4f1037f86a6291c6cd51abdaf29b83e077a49a58
treed9bab8acab42824485e3b1fecbcdb4c931e17090
parent620b3d9ba3343d7bc5bab2340174a20952fcd00f
[flang][build] Fix build issue reported on recent commit

Some compiler (not specified) reported to issue an error on a
"default:" clause in a switch statement whose cases cover all of
the values of an "enum class".  Since other compilers/versions
are known to complain in the other direction, change the switch
statement to a cascade of ifs.
flang/lib/Semantics/data-to-inits.cpp