Skip to content

Commit 06c1182

Browse files
committed
Correcting the args to FilterAndGetValueForKey to take a char*.
1 parent 00dcff4 commit 06c1182

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lldb/tools/lldb-dap/JSONUtils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,11 +1480,11 @@ CreateRunInTerminalReverseRequest(const llvm::json::Object &launch_request,
14801480
// Keep all the top level items from the statistics dump, except for the
14811481
// "modules" array. It can be huge and cause delay
14821482
// Array and dictionary value will return as <key, JSON string> pairs
1483-
void FilterAndGetValueForKey(const lldb::SBStructuredData data,
1484-
llvm::StringRef key, llvm::json::Object &out) {
1485-
lldb::SBStructuredData value = data.GetValueForKey(key.data());
1483+
void FilterAndGetValueForKey(const lldb::SBStructuredData data, char *key,
1484+
llvm::json::Object &out) {
1485+
lldb::SBStructuredData value = data.GetValueForKey(key);
14861486
std::string key_utf8 = llvm::json::fixUTF8(key);
1487-
if (key == "modules")
1487+
if (llvm::StringRef(key) == "modules")
14881488
return;
14891489
switch (value.GetType()) {
14901490
case lldb::eStructuredDataTypeFloat:

0 commit comments

Comments
 (0)