mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 05:31:37 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275355 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57df85bcd9
commit
18d2e0ea00
@ -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
Block a user