Fix some "not all control paths return" warnings; NFC

This commit is contained in:
Aaron Ballman
2025-06-16 07:48:50 -04:00
parent e00853859e
commit ddea4fe85a
2 changed files with 2 additions and 0 deletions

View File

@@ -147,6 +147,7 @@ mergeInfos(std::vector<std::unique_ptr<Info>> &Values) {
return llvm::createStringError(llvm::inconvertibleErrorCode(),
"unexpected info type");
}
llvm_unreachable("unhandled enumerator");
}
bool CommentInfo::operator==(const CommentInfo &Other) const {

View File

@@ -392,6 +392,7 @@ std::string serialize(std::unique_ptr<Info> &I) {
case InfoType::IT_default:
return "";
}
llvm_unreachable("unhandled enumerator");
}
static void parseFullComment(const FullComment *C, CommentInfo &CI) {