[clang] f15924d - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 27 01:56:44 PDT 2025
Author: Simon Pilgrim
Date: 2025-03-27T08:55:47Z
New Revision: f15924d1d1310527d7d78e8c66655e6b94bc241b
URL: https://github.com/llvm/llvm-project/commit/f15924d1d1310527d7d78e8c66655e6b94bc241b
DIFF: https://github.com/llvm/llvm-project/commit/f15924d1d1310527d7d78e8c66655e6b94bc241b.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
clang/lib/AST/NestedNameSpecifier.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/NestedNameSpecifier.cpp b/clang/lib/AST/NestedNameSpecifier.cpp
index 206e462a58a79..d3195e6487f0b 100644
--- a/clang/lib/AST/NestedNameSpecifier.cpp
+++ b/clang/lib/AST/NestedNameSpecifier.cpp
@@ -289,6 +289,7 @@ NestedNameSpecifier::translateToType(const ASTContext &Context) const {
// These are not representable as types.
return nullptr;
}
+ llvm_unreachable("Unhandled SpecifierKind enum");
}
/// Print this nested name specifier to the given output
More information about the cfe-commits
mailing list