git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365119
91177308-0d34-0410-b5e6-
96231b3b80d8
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>
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)