Skip to content

Commit a568b3e

Browse files
committed
[lldb] Avoid calling raw_string_ostream::str() in LLDBAssert.cpp (NFC)
Revert to the state after d779685 and use the underlying buffer directly. I was still under the impression that was unsafe, so I did a drive-by fix, which this commit reverts. (cherry picked from commit 96ef428)
1 parent 10e790b commit a568b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Utility/LLDBAssert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void _lldb_assert(bool expression, const char *expr_text, const char *func,
5353
llvm::formatv("Assertion failed: ({0}), function {1}, file {2}, line {3}",
5454
expr_text, func, file, line)
5555
.str(),
56-
backtrace.str(),
56+
buffer,
5757
"Please file a bug report against lldb reporting this failure log, and "
5858
"as many details as possible");
5959
}

0 commit comments

Comments
 (0)