forked from OSchip/llvm-project
Fix MSVC "not all control paths return a value" warning
This commit is contained in:
parent
a1df2ef5cb
commit
dc15bedfb9
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue