summaryrefslogtreecommitdiffstats
path: root/llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp
diff options
context:
space:
mode:
authorTim Renouf <tpr.llvm@botech.co.uk>2019-03-18 19:00:46 +0000
committerTim Renouf <tpr.llvm@botech.co.uk>2019-03-18 19:00:46 +0000
commit8723a5655172dcea0e26c72c2def7deb9ad83188 (patch)
treedc0537dc7418881a3a0851eece3656a3d1891cb9 /llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp
parentf07062a7984cf277baa381dcb7284beb9f7af4a8 (diff)
downloadbcm5719-llvm-8723a5655172dcea0e26c72c2def7deb9ad83188.tar.gz
bcm5719-llvm-8723a5655172dcea0e26c72c2def7deb9ad83188.zip
[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
Diffstat (limited to 'llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp')
-rw-r--r--llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud