diff options
Diffstat (limited to 'lldb/unittests/Core/LogTest.cpp')
-rw-r--r-- | lldb/unittests/Core/LogTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/unittests/Core/LogTest.cpp b/lldb/unittests/Core/LogTest.cpp index 11096ddbb0f..993cb10c055 100644 --- a/lldb/unittests/Core/LogTest.cpp +++ b/lldb/unittests/Core/LogTest.cpp @@ -18,12 +18,14 @@ using namespace lldb_private; static std::string GetLogString(uint32_t log_options, const char *format, int arg) { - std::shared_ptr<StreamString> stream_sp(new StreamString()); + std::string stream_string; + std::shared_ptr<llvm::raw_string_ostream> stream_sp( + new llvm::raw_string_ostream(stream_string)); Log log_(stream_sp); log_.GetOptions().Reset(log_options); Log *log = &log_; LLDB_LOG(log, format, arg); - return stream_sp->GetString(); + return stream_sp->str(); } TEST(LogTest, LLDB_LOG_nullptr) { |