summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
-rw-r--r--lldb/source/API/SBThread.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index cc3b84171c1..5fcd6379d0b 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -951,13 +951,14 @@ SBThread::operator*()
bool
SBThread::GetDescription (SBStream &description) const
{
+ Stream &strm = description.ref();
+
if (m_opaque_sp)
{
- StreamString strm;
- description.Printf("SBThread: tid = 0x%4.4llx", m_opaque_sp->GetID());
+ strm.Printf("SBThread: tid = 0x%4.4llx", m_opaque_sp->GetID());
}
else
- description.Printf ("No value");
+ strm.PutCString ("No value");
return true;
}
OpenPOWER on IntegriCloud