From 948545f15ea4e730b3dcfe31dc865634d760c608 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 4 Jul 2019 09:46:06 +0000 Subject: [PATCH] Fix MSVC "not all control paths return a value" warnings. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365119 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Remarks/RemarkParser.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Remarks/RemarkParser.cpp b/lib/Remarks/RemarkParser.cpp index 3af293a98b9..bd83ba488d8 100644 --- a/lib/Remarks/RemarkParser.cpp +++ b/lib/Remarks/RemarkParser.cpp @@ -25,9 +25,8 @@ static std::unique_ptr formatToParserImpl(ParserFormat Format, switch (Format) { case ParserFormat::YAML: return llvm::make_unique(Buf); - default: - llvm_unreachable("Unknown format encountered!"); }; + llvm_unreachable("Unhandled llvm::remarks::ParserFormat enum"); } static std::unique_ptr @@ -36,9 +35,8 @@ formatToParserImpl(ParserFormat Format, StringRef Buf, switch (Format) { case ParserFormat::YAML: return llvm::make_unique(Buf, &StrTab); - default: - llvm_unreachable("Unknown format encountered!"); }; + llvm_unreachable("Unhandled llvm::remarks::ParserFormat enum"); } Parser::Parser(ParserFormat Format, StringRef Buf) -- 2.40.0