[flang] Fix build warning
authorPeter Klausler <pklausler@nvidia.com>
Wed, 1 Feb 2023 22:05:57 +0000 (14:05 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Wed, 1 Feb 2023 22:08:02 +0000 (14:08 -0800)
commit27004e027312a59e3b6645f5df58e97c2a2da6ef
treedcc2ce55f004b8da381fda78a7c458968679244d
parent42701cac812808682f9139d7832b1c6f74cef152
[flang] Fix build warning

It's basically impossible to write a switch statement with a case
for every enumerator in an enum class if the cases each have a
return statement and get it to compile without warnings for all
of our build compilers & versions.  Rewrite as a sequence of
if statements.
flang/lib/Evaluate/check-expression.cpp