[clang-tools-extra] 6faf5d7 - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 17 09:20:25 PST 2022
Author: Simon Pilgrim
Date: 2022-11-17T17:19:41Z
New Revision: 6faf5d72459aee4f388dbd13eb2ddd097d2be067
URL: https://github.com/llvm/llvm-project/commit/6faf5d72459aee4f388dbd13eb2ddd097d2be067
DIFF: https://github.com/llvm/llvm-project/commit/6faf5d72459aee4f388dbd13eb2ddd097d2be067.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
clang-tools-extra/include-cleaner/lib/HTMLReport.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp b/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp
index b1c9f6d54866..2b5d67c29955 100644
--- a/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp
+++ b/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp
@@ -103,6 +103,7 @@ llvm::StringRef refType(RefType T) {
case RefType::Ambiguous:
return "ambiguous";
}
+ llvm_unreachable("unhandled RefType enum");
}
class Reporter {
More information about the cfe-commits
mailing list