[clang-tools-extra] 9fbabba - [clangd] InlayHints.cpp - fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 24 02:38:18 PDT 2023
Author: Simon Pilgrim
Date: 2023-07-24T10:37:59+01:00
New Revision: 9fbabba9212e7f1a2488a3b05eed0fc61006a7ac
URL: https://github.com/llvm/llvm-project/commit/9fbabba9212e7f1a2488a3b05eed0fc61006a7ac
DIFF: https://github.com/llvm/llvm-project/commit/9fbabba9212e7f1a2488a3b05eed0fc61006a7ac.diff
LOG: [clangd] InlayHints.cpp - fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
clang-tools-extra/clangd/InlayHints.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/InlayHints.cpp b/clang-tools-extra/clangd/InlayHints.cpp
index 0b5bab1aac9b1b..9247d212f73c45 100644
--- a/clang-tools-extra/clangd/InlayHints.cpp
+++ b/clang-tools-extra/clangd/InlayHints.cpp
@@ -222,6 +222,7 @@ const NamedDecl *getDeclForType(const Type *T) {
return getDeclForTypeImpl(llvm::cast<TY##Type>(T));
#include "clang/AST/TypeNodes.inc"
}
+ llvm_unreachable("Unknown TypeClass enum");
}
// getSimpleName() returns the plain identifier for an entity, if any.
More information about the cfe-commits
mailing list