[all-commits] [llvm/llvm-project] b3c1f5: [flang] Recode a switch() to dodge a sketchy warning
Peter Klausler via All-commits
all-commits at lists.llvm.org
Fri Jun 18 16:59:02 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b3c1f53c989f6aefad581955e3add222cfb5d890
https://github.com/llvm/llvm-project/commit/b3c1f53c989f6aefad581955e3add222cfb5d890
Author: peter klausler <pklausler at nvidia.com>
Date: 2021-06-18 (Fri, 18 Jun 2021)
Changed paths:
M flang/runtime/type-info.cpp
Log Message:
-----------
[flang] Recode a switch() to dodge a sketchy warning
One of the buildbots uses a compiler (can't tell which) that
doesn't approve of a "default:" in a switch statement whose
cases appear to completely cover all possible values of an
enum class. But this switch is in raw data dumping code that
needs to allow for incorrect values in memory. So rewrite it
as a cascade of if statements; performance doesn't matter here.
More information about the All-commits
mailing list