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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits