Skip to content

Commit 4064ac6

Browse files
committed
[lldb-dap] add review changes
1 parent 03a1099 commit 4064ac6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lldb/tools/lldb-dap/DAP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ struct DAP {
419419
std::thread progress_event_thread;
420420
/// @}
421421

422-
/// list of addresses mapped by sourceReference(index - 1)
422+
/// List of addresses mapped by sourceReference.
423423
std::vector<lldb::addr_t> m_source_references;
424424
std::mutex m_source_references_mutex;
425425

lldb/tools/lldb-dap/ProtocolUtils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ std::optional<protocol::Source> CreateAssemblySource(
6161
name = GetLoadAddressString(load_addr);
6262
}
6363

64-
if (load_addr == LLDB_INVALID_ADDRESS) {
64+
if (load_addr == LLDB_INVALID_ADDRESS)
6565
return std::nullopt;
66-
}
6766

6867
protocol::Source source;
6968
source.sourceReference = create_reference(load_addr);

0 commit comments

Comments
 (0)