aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index bc1f5c3..2e2b0ed 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -489,11 +489,11 @@ protected:
AddressRange range;
SymbolContext sc = frame->GetSymbolContext(eSymbolContextEverything);
if (m_options.m_end_line != LLDB_INVALID_LINE_NUMBER) {
- Status error;
- if (!sc.GetAddressRangeFromHereToEndLine(m_options.m_end_line, range,
- error)) {
- result.AppendErrorWithFormat("invalid end-line option: %s.",
- error.AsCString());
+ llvm::Error err =
+ sc.GetAddressRangeFromHereToEndLine(m_options.m_end_line, range);
+ if (err) {
+ result.AppendErrorWithFormatv("invalid end-line option: {0}.",
+ llvm::toString(std::move(err)));
return;
}
} else if (m_options.m_end_line_is_block_end) {