================
@@ -452,8 +452,7 @@ static void serializeArray(const Container &Records, Object 
&Obj,
     json::Value ItemVal = Object();
     auto &ItemObj = *ItemVal.getAsObject();
     SerializeInfo(Records[Index], ItemObj);
-    if (Index == Records.size() - 1)
-      ItemObj["End"] = true;
+    ItemObj["End"] = (Index == Records.size() - 1);
----------------
SamrudhNelli wrote:

> Does the `End` key always exist? If it does, was it initialized to `false`?
> 
It didn't always exist in every scope, now we are explicitly creating it and 
setting it to false.

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

Reply via email to