[Lldb-commits] [PATCH] D135616: [lldb/Utility] Fix StructuredData::ParseJSONValue for null items
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 3 14:46:11 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG90608963d40b: [lldb/Utility] Fix StructuredData::ParseJSONValue for null items (authored by mib).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135616/new/
https://reviews.llvm.org/D135616
Files:
lldb/source/Utility/StructuredData.cpp
Index: lldb/source/Utility/StructuredData.cpp
===================================================================
--- lldb/source/Utility/StructuredData.cpp
+++ lldb/source/Utility/StructuredData.cpp
@@ -69,6 +69,9 @@
if (auto d = value.getAsNumber())
return std::make_shared<StructuredData::Float>(*d);
+ if (auto n = value.getAsNull())
+ return std::make_shared<StructuredData::Null>();
+
return StructuredData::ObjectSP();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135616.473039.patch
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221103/bb0e9a78/attachment.bin>
More information about the lldb-commits
mailing list