From 8723a5655172dcea0e26c72c2def7deb9ad83188 Mon Sep 17 00:00:00 2001 From: Tim Renouf Date: Mon, 18 Mar 2019 19:00:46 +0000 Subject: [MsgPack][AMDGPU] Fix unflushed raw_string_ostream bugs on windows expensive checks bot This fixes a couple of unflushed raw_string_ostream bugs in recent commits that only show up on a bot building on windows with expensive checks. Differential Revision: https://reviews.llvm.org/D59396 Change-Id: I9c6208325503b3ee0786b4b688e13fc24a15babf llvm-svn: 356394 --- llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp') diff --git a/llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp b/llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp index ae67d7be132..1d9c81ef8eb 100644 --- a/llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp +++ b/llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp @@ -61,7 +61,7 @@ std::string DocNode::toString() const { llvm_unreachable("not scalar"); break; } - return S; + return OS.str(); } /// Convert the StringRef and use it to set this DocNode (assuming scalar). If -- cgit v1.2.3