X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FAtomicLinkedList.h;h=f24746a5d1f6f8e0f7c234f75f5dfd2d1a99853a;hb=d3a08687ca79f566693a41520124f8ba92ca185a;hp=eca8de16d9b32450cdab81876ae1c3834c6c9efe;hpb=ace10485f7356cfd0b995483cdc683849eb21fd3;p=folly.git diff --git a/folly/AtomicLinkedList.h b/folly/AtomicLinkedList.h index eca8de16..f24746a5 100644 --- a/folly/AtomicLinkedList.h +++ b/folly/AtomicLinkedList.h @@ -63,7 +63,7 @@ class AtomicLinkedList { * Note: list must be empty on destruction. */ ~AtomicLinkedList() { - assert(head_ == nullptr); + assert(empty()); } bool empty() const {