llvm.org GIT mirror llvm / 948545f
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 Simon Pilgrim a month ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2424 switch (Format) {
2525 case ParserFormat::YAML:
2626 return llvm::make_unique(Buf);
27 default:
28 llvm_unreachable("Unknown format encountered!");
2927 };
28 llvm_unreachable("Unhandled llvm::remarks::ParserFormat enum");
3029 }
3130
3231 static std::unique_ptr
3534 switch (Format) {
3635 case ParserFormat::YAML:
3736 return llvm::make_unique(Buf, &StrTab);
38 default:
39 llvm_unreachable("Unknown format encountered!");
4037 };
38 llvm_unreachable("Unhandled llvm::remarks::ParserFormat enum");
4139 }
4240
4341 Parser::Parser(ParserFormat Format, StringRef Buf)