From: Adam Nemet Date: Tue, 27 Sep 2016 20:55:12 +0000 (+0000) Subject: Adapt to LLVM optimization remark interface change. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d6d8bd3df6e27ec09fd19dfb97c7fa59991325c;p=clang Adapt to LLVM optimization remark interface change. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282540 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 6a3b9c6efb..f79ca7f79f 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -514,7 +514,7 @@ void BackendConsumer::EmitOptimizationMessage( std::string Msg; raw_string_ostream MsgStream(Msg); - MsgStream << D.getMsg().str(); + MsgStream << D.getMsg(); if (D.getHotness()) MsgStream << " (hotness: " << *D.getHotness() << ")";