[clang] cebc348 - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 8 03:44:28 PST 2022
Author: Simon Pilgrim
Date: 2022-12-08T11:44:18Z
New Revision: cebc348f6735b1fb5607e408dfe2e4d34abe0002
URL: https://github.com/llvm/llvm-project/commit/cebc348f6735b1fb5607e408dfe2e4d34abe0002
DIFF: https://github.com/llvm/llvm-project/commit/cebc348f6735b1fb5607e408dfe2e4d34abe0002.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
clang/include/clang/Basic/HeaderInclude.h
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/HeaderInclude.h b/clang/include/clang/Basic/HeaderInclude.h
index 7a1a08ba617af..83c26543bbd3b 100644
--- a/clang/include/clang/Basic/HeaderInclude.h
+++ b/clang/include/clang/Basic/HeaderInclude.h
@@ -54,6 +54,7 @@ inline const char *headerIncludeFormatKindToString(HeaderIncludeFormatKind K) {
case HIFMT_JSON:
return "json";
}
+ llvm_unreachable("Unknown HeaderIncludeFormatKind enum");
}
inline const char *
@@ -64,6 +65,7 @@ headerIncludeFilteringKindToString(HeaderIncludeFilteringKind K) {
case HIFIL_Only_Direct_System:
return "only-direct-system";
}
+ llvm_unreachable("Unknown HeaderIncludeFilteringKind enum");
}
} // end namespace clang
More information about the cfe-commits
mailing list