Fix MSVC "not all control paths return a value" warning

This commit is contained in:
Simon Pilgrim 2022-04-07 14:01:06 +01:00
parent a1df2ef5cb
commit dc15bedfb9
1 changed files with 1 additions and 0 deletions

View File

@ -479,6 +479,7 @@ std::string NewFunction::renderDeclaration(FunctionDeclKind K,
llvm::formatv("{0} {\n{1}\n}\n", Declaration, getFuncBody(SM)));
break;
}
llvm_unreachable("Unsupported FunctionDeclKind enum");
}
std::string NewFunction::getFuncBody(const SourceManager &SM) const {