Skip to content
Snippets Groups Projects
Commit dc15bedf authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

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

parent a1df2ef5
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment