From: Adam Nemet Date: Tue, 27 Sep 2016 16:39:27 +0000 (+0000) Subject: Revert "Adapt to LLVM optimization remark interface change. NFC" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=709c3c4f685ad87f76f9efe14f8a91a637505e33;p=clang Revert "Adapt to LLVM optimization remark interface change. NFC" This reverts commit r282500. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282504 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index f79ca7f79f..6a3b9c6efb 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(); + MsgStream << D.getMsg().str(); if (D.getHotness()) MsgStream << " (hotness: " << *D.getHotness() << ")";