diff options
| author | Diego Novillo <dnovillo@google.com> | 2014-10-30 18:48:41 +0000 |
|---|---|---|
| committer | Diego Novillo <dnovillo@google.com> | 2014-10-30 18:48:41 +0000 |
| commit | 77a5a5fcdad5f27a8799b80f15e192fdb4f3a13c (patch) | |
| tree | 31ec78f1dd3e813b156df38db954bb7009fa65bf /llvm | |
| parent | 2206b48d6ddabad61979fa69ba09e6b6fb19b0b2 (diff) | |
| download | bcm5719-llvm-77a5a5fcdad5f27a8799b80f15e192fdb4f3a13c.tar.gz bcm5719-llvm-77a5a5fcdad5f27a8799b80f15e192fdb4f3a13c.zip | |
Fix Twine corruption problem with diagnostics.
This fixes the autobuilders I broke with a recent patch. Thanks echristo
and dblaikie for beating me with a clue stick.
llvm-svn: 220918
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SampleProfile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SampleProfile.cpp b/llvm/lib/Transforms/Scalar/SampleProfile.cpp index 8d5480c7cb5..89f0c27070b 100644 --- a/llvm/lib/Transforms/Scalar/SampleProfile.cpp +++ b/llvm/lib/Transforms/Scalar/SampleProfile.cpp @@ -740,8 +740,7 @@ bool SampleProfileLoader::doInitialization(Module &M) { 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); |

