diff options
author | Peter Klausler <35819229+klausler@users.noreply.github.com> | 2024-03-26 10:02:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 10:02:22 -0700 |
commit | f92f77521263c8f20171b62688ecc86de9c9dfa9 (patch) | |
tree | 3fb871cfeb6e5383c44cbe87cacf82facfe5a56b /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | bf4fc00bb73c73ccc7a78cd6d28287dd58c71e2c (diff) | |
download | llvm-f92f77521263c8f20171b62688ecc86de9c9dfa9.zip llvm-f92f77521263c8f20171b62688ecc86de9c9dfa9.tar.gz llvm-f92f77521263c8f20171b62688ecc86de9c9dfa9.tar.bz2 |
[flang][NFC] Address reported "possible missing return" (#86523)
A function uses "if constexpr" to consider all possible types in a
variant, but looks as if it can fall out without returning an
expression. Add a final "else" with a crash to make things more clear
and to protect against unlikely future extensions of the type.
Fixes https://github.com/llvm/llvm-project/issues/86391.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions