OSDN Git Service

SmallVector::erase: Assert that iterators are actually inside the vector.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 27 Jul 2012 09:10:25 +0000 (09:10 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 27 Jul 2012 09:10:25 +0000 (09:10 +0000)
commitdf7c5d4137fd5cf63d9a9b0f09c9d7255895908c
tree9b7e52418388c2ec6d4c4ad4d1f7110984802c6f
parentf553587a4f5bdd9226c6f29bb46a32b6f67986ff
SmallVector::erase: Assert that iterators are actually inside the vector.

The rationale here is that it's hard to write loops containing vector erases and
it only shows up if the vector contains non-trivial objects leading to crashes
when forming them out of garbage memory.

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