[libcxx-commits] [PATCH] D100728: Add a missing debug assertion in <list>

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Apr 18 16:40:56 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG5e7367d3e444: Add a missing debug assertion in <list>. (authored by arthur.j.odwyer).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100728/new/

https://reviews.llvm.org/D100728

Files:
  libcxx/include/list


Index: libcxx/include/list
===================================================================
--- libcxx/include/list
+++ libcxx/include/list
@@ -2099,6 +2099,9 @@
     _LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__f) == &__c,
         "list::splice(iterator, list, iterator, iterator) called with second iterator not"
         " referring to list argument");
+    _LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__l) == &__c,
+        "list::splice(iterator, list, iterator, iterator) called with third iterator not"
+        " referring to list argument");
     if (this == &__c)
     {
         for (const_iterator __i = __f; __i != __l; ++__i)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100728.338399.patch
Type: text/x-patch
Size: 657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210418/865c514c/attachment.bin>


More information about the libcxx-commits mailing list