forked from OSchip/llvm-project
MIRParser: Fix MIRParser not reporting nullptr on error.
While some code paths in MIRParserImpl::parse() already returned nullptr in case of error one of the important ones did not. llvm-svn: 275355
This commit is contained in:
parent
0418ef2691
commit
d6f9562bb4
|
@ -231,7 +231,7 @@ std::unique_ptr<Module> MIRParserImpl::parse() {
|
|||
Context, &IRSlots);
|
||||
if (!M) {
|
||||
reportDiagnostic(diagFromBlockStringDiag(Error, BSN->getSourceRange()));
|
||||
return M;
|
||||
return nullptr;
|
||||
}
|
||||
In.nextDocument();
|
||||
if (!In.setCurrentDocument())
|
||||
|
|
Loading…
Reference in New Issue