when a node is removed from an ilist, set its next/prev pointers to
authorChris Lattner <sabre@nondot.org>
Thu, 27 Mar 2008 02:43:03 +0000 (02:43 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 27 Mar 2008 02:43:03 +0000 (02:43 +0000)
commit2896652be29de97a6e08b5cccc015096f4ed17b5
tree7bbfe66024d6c41e526efff49514b8c345de11f1
parent53b87db8d31dd8593f256189ec504274035713ab
when a node is removed from an ilist, set its next/prev pointers to
null.  This means that uses of invalidated iterators will explode violently
with:
ilist:143: failed assertion `NodePtr && "++'d off the end of an ilist!"'

instead of happening to work "most of the time".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48859 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/ilist