summaryrefslogtreecommitdiff
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.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index 7508eed5d6fd..a99456e06d03 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -605,8 +605,11 @@ void SBThread::StepInto(const char *target_name, uint32_t end_line,
if (end_line == LLDB_INVALID_LINE_NUMBER)
range = sc.line_entry.range;
else {
- if (!sc.GetAddressRangeFromHereToEndLine(end_line, range, error.ref()))
+ llvm::Error err = sc.GetAddressRangeFromHereToEndLine(end_line, range);
+ if (err) {
+ error = Status::FromErrorString(llvm::toString(std::move(err)).c_str());
return;
+ }
}
const LazyBool step_out_avoids_code_without_debug_info =