mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +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:
parent
eea5cb8a32
commit
4eb540992c
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user