1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[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
This commit is contained in:
Tim Renouf 2019-03-18 19:00:46 +00:00
parent eea5cb8a32
commit 4eb540992c
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -323,8 +323,10 @@ MCPhysReg SIMachineFunctionInfo::getNextSystemSGPR() const {
static yaml::StringValue regToString(unsigned Reg,
const TargetRegisterInfo &TRI) {
yaml::StringValue Dest;
{
raw_string_ostream OS(Dest.Value);
OS << printReg(Reg, &TRI);
}
return Dest;
}