From 6f2ebc435f1cd8f121d227a52c76b6477cec8c91 Mon Sep 17 00:00:00 2001 From: AbdAlRahman Gad <89566409+AbdAlRahmanGad@users.noreply.github.com> Date: Tue, 8 Oct 2024 20:04:52 +0300 Subject: [lldb] Change SymbolContext::GetAddressRangeFromHereToEndLine to return Expected (NFC) (#110718) Signed-off-by: AbdAlRahman Gad Co-authored-by: Adrian Prantl --- lldb/source/Commands/CommandObjectThread.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lldb/source/Commands/CommandObjectThread.cpp') diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index bc1f5c39e702..2e2b0edeec0f 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) { -- cgit v1.2.3