================
@@ -131,6 +157,8 @@ static Object serializeComment(const CommentInfo &I, Object 
&Description) {
 
   switch (I.Kind) {
   case CommentKind::CK_TextComment: {
+    if (I.Text.empty())
+      return Obj;
     Obj.insert({commentKindToString(I.Kind), I.Text});
     return Obj;
----------------
ilovepi wrote:

```suggestion
    if (!I.Text.empty())
      Obj.insert({commentKindToString(I.Kind), I.Text});
    return Obj;
```

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