From 709c3c4f685ad87f76f9efe14f8a91a637505e33 Mon Sep 17 00:00:00 2001 From: Adam Nemet <anemet@apple.com> Date: Tue, 27 Sep 2016 16:39:27 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CodeGenAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() << ")"; -- 2.40.0