================
@@ -54,6 +54,20 @@ RecordContext *APIRecord::castToRecordContext(const 
APIRecord *Record) {
   }
 }
 
+void RecordContext::stealRecordChain(RecordContext &Other) {
+  // If we don't have an empty chain append Other's chain into ours.
+  if (First)
+    Last->NextInContext = Other.First;
----------------
daniel-grumberg wrote:

Documented the invariant that `First` being non-null implies that `Last` is 
also non-null in an assert above.

https://github.com/llvm/llvm-project/pull/87772
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to