================
@@ -100,8 +105,29 @@ static void insertComment(Object &Description, json::Value 
&Comment,
 
 static json::Value extractTextComments(Object *ParagraphComment) {
   if (!ParagraphComment)
-    return json::Object();
-  return *ParagraphComment->get("Children");
+    return nullptr;
----------------
ilovepi wrote:

Is `nullptr` a valid `json::Value`? I'd have thought we need to return 
`json::Value::Null` instead.

https://github.com/llvm/llvm-project/pull/169087
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to