[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 10:57:34 PDT 2021
Quuxplusone created this revision.
Quuxplusone added a reviewer: krisb.
Quuxplusone added a project: libc++.
Quuxplusone requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
This came up in D100595 <https://reviews.llvm.org/D100595>.
Repository:
rG LLVM Github Monorepo
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.338388.patch
Type: text/x-patch
Size: 657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210418/6b3a87ef/attachment.bin>
More information about the libcxx-commits
mailing list