From 95d0c628cf9654b60bf423ed05019effa391d8cd Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Tue, 27 Sep 2016 16:39:27 +0000 Subject: Revert "Adapt to LLVM optimization remark interface change. NFC" This reverts commit r282500. llvm-svn: 282504 --- clang/lib/CodeGen/CodeGenAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang') diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index f79ca7f79fa..6a3b9c6efbd 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/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() << ")"; -- cgit v1.2.3