1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix MSVC "not all control paths return a value" warnings. NFCI.

llvm-svn: 365119
This commit is contained in:
Simon Pilgrim 2019-07-04 09:46:06 +00:00
parent 0a0fbcd1db
commit b24fbcea49

View File

@ -25,9 +25,8 @@ static std::unique_ptr<ParserImpl> formatToParserImpl(ParserFormat Format,
switch (Format) {
case ParserFormat::YAML:
return llvm::make_unique<YAMLParserImpl>(Buf);
default:
llvm_unreachable("Unknown format encountered!");
};
llvm_unreachable("Unhandled llvm::remarks::ParserFormat enum");
}
static std::unique_ptr<ParserImpl>
@ -36,9 +35,8 @@ formatToParserImpl(ParserFormat Format, StringRef Buf,
switch (Format) {
case ParserFormat::YAML:
return llvm::make_unique<YAMLParserImpl>(Buf, &StrTab);
default:
llvm_unreachable("Unknown format encountered!");
};
llvm_unreachable("Unhandled llvm::remarks::ParserFormat enum");
}
Parser::Parser(ParserFormat Format, StringRef Buf)