[clang] 10d6562 - Fix "not all control paths return a value" MSVC warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue May 30 02:33:53 PDT 2023
Author: Simon Pilgrim
Date: 2023-05-30T10:33:31+01:00
New Revision: 10d6562ff1bc0009024633b1fd6ab6c3abaea4b7
URL: https://github.com/llvm/llvm-project/commit/10d6562ff1bc0009024633b1fd6ab6c3abaea4b7
DIFF: https://github.com/llvm/llvm-project/commit/10d6562ff1bc0009024633b1fd6ab6c3abaea4b7.diff
LOG: Fix "not all control paths return a value" MSVC warning. NFC.
Added:
Modified:
clang/lib/AST/Decl.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index e441c338a2c76..99926b2786ef2 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -3331,6 +3331,7 @@ bool FunctionDecl::isInlineBuiltinDeclaration() const {
case GVA_StrongExternal:
return true;
}
+ llvm_unreachable("Unknown GVALinkage");
}
bool FunctionDecl::isDestroyingOperatorDelete() const {
More information about the cfe-commits
mailing list