[clang] d5e0868 - [Basic] Fix Wreturn-type gcc warning (NFC)
Yang Fan via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 26 01:14:40 PST 2021
Author: Yang Fan
Date: 2021-02-26T17:14:13+08:00
New Revision: d5e0868e5e321e2a2f3bf73599ae9239c5aaa0c9
URL: https://github.com/llvm/llvm-project/commit/d5e0868e5e321e2a2f3bf73599ae9239c5aaa0c9
DIFF: https://github.com/llvm/llvm-project/commit/d5e0868e5e321e2a2f3bf73599ae9239c5aaa0c9.diff
LOG: [Basic] Fix Wreturn-type gcc warning (NFC)
Added:
Modified:
clang/include/clang/Basic/Diagnostic.h
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/Diagnostic.h b/clang/include/clang/Basic/Diagnostic.h
index 8f94d271aaa4..3b915fb15a89 100644
--- a/clang/include/clang/Basic/Diagnostic.h
+++ b/clang/include/clang/Basic/Diagnostic.h
@@ -731,6 +731,7 @@ class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
case Ovl_Best:
return NumOverloadsToShow;
}
+ llvm_unreachable("invalid OverloadsShown kind");
}
/// Call this after showing N overload candidates. This influences the value
More information about the cfe-commits
mailing list