Don't crash when passing a non-existent file to -fprofile-instr-use=.
Fixes a regression from r229434. llvm-svn: 234141
This commit is contained in:
@@ -147,8 +147,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO,
|
||||
unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,
|
||||
"Could not read profile: %0");
|
||||
getDiags().Report(DiagID) << EC.message();
|
||||
}
|
||||
PGOReader = std::move(ReaderOrErr.get());
|
||||
} else
|
||||
PGOReader = std::move(ReaderOrErr.get());
|
||||
}
|
||||
|
||||
// If coverage mapping generation is enabled, create the
|
||||
|
||||
Reference in New Issue
Block a user