[all-commits] [llvm/llvm-project] 27004e: [flang] Fix build warning
Peter Klausler via All-commits
all-commits at lists.llvm.org
Wed Feb 1 14:09:04 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 27004e027312a59e3b6645f5df58e97c2a2da6ef
https://github.com/llvm/llvm-project/commit/27004e027312a59e3b6645f5df58e97c2a2da6ef
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2023-02-01 (Wed, 01 Feb 2023)
Changed paths:
M flang/lib/Evaluate/check-expression.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list