Skip to content

Commit 9c90520

Browse files
committed
remove raw json usage
1 parent b0e3865 commit 9c90520

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,12 +1408,11 @@ void DAP::EventThread() {
14081408
// CreateBreakpoint doesn't apply source mapping and certain
14091409
// implementation ignore the source part of this event anyway.
14101410
protocol::Breakpoint protocol_bp = bp.ToProtocolBreakpoint();
1411-
llvm::json::Value protocol_bp_value = toJSON(protocol_bp);
14121411

14131412
// "source" is not needed here, unless we add adapter data to be
14141413
// saved by the client.
14151414
if (protocol_bp.source && !protocol_bp.source->adapterData)
1416-
protocol_bp_value.getAsObject()->erase("source");
1415+
protocol_bp.source = std::nullopt;
14171416

14181417
llvm::json::Object body;
14191418
body.try_emplace("breakpoint", protocol_bp);

0 commit comments

Comments
 (0)