This fixes the autobuilders I broke with a recent patch. Thanks echristo
and dblaikie for beating me with a clue stick.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220918
91177308-0d34-0410-b5e6-
96231b3b80d8
if (std::error_code EC =
SampleProfileReader::create(Filename, Reader, M.getContext())) {
std::string Msg = "Could not open profile: " + EC.message();
if (std::error_code EC =
SampleProfileReader::create(Filename, Reader, M.getContext())) {
std::string Msg = "Could not open profile: " + EC.message();
- DiagnosticInfoSampleProfile Diag(Filename.data(), Msg);
- M.getContext().diagnose(Diag);
+ M.getContext().diagnose(DiagnosticInfoSampleProfile(Filename.data(), Msg));
return false;
}
ProfileIsValid = (Reader->read() == sampleprof_error::success);
return false;
}
ProfileIsValid = (Reader->read() == sampleprof_error::success);