diff options
author | Martin Storsjö <martin@martin.st> | 2025-09-17 20:44:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-17 20:44:26 +0300 |
commit | 95f213f37c8e1800f7769885a5cd0f0da994a085 (patch) | |
tree | 372ded865c805c06f32a2cac62d5eec5dfa17f4d /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 1c5fcb13e0ef82bacdab3b1d0a63a95f29e76306 (diff) | |
download | llvm-95f213f37c8e1800f7769885a5cd0f0da994a085.zip llvm-95f213f37c8e1800f7769885a5cd0f0da994a085.tar.gz llvm-95f213f37c8e1800f7769885a5cd0f0da994a085.tar.bz2 |
[clang] Add unreachable after fully covered switches, avoid GCC warnings. NFC. (#159330)
This avoids the following warnings:
../../clang/lib/AST/ExprConstant.cpp: In member function ‘bool {anonymous}::IntExprEvaluator::VisitBuiltinCallExpr(const clang::CallExpr*, unsigned int)’:
../../clang/lib/AST/ExprConstant.cpp:14104:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
14104 | }
| ^
../../clang/lib/AST/ExprConstant.cpp:14105:3: note: here
14105 | case Builtin::BIstrlen:
| ^~~~
../../clang/lib/Driver/ToolChains/CommonArgs.cpp: In function ‘std::string clang::driver::tools::complexRangeKindToStr(clang::LangOptionsBase::ComplexRangeKind ’:
../../clang/lib/Driver/ToolChains/CommonArgs.cpp:3523:1: warning: control reaches end of non-void function [-Wreturn-type]
3523 | }
| ^
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions