Make the moved-from SmallPtrSet be a valid, empty, small-state object.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 20 Nov 2013 18:29:56 +0000 (18:29 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 20 Nov 2013 18:29:56 +0000 (18:29 +0000)
commitfd03357c25eee9f911a8005eb5945fc99d05debb
treeb8bd3157814f2f867f673d08aff6a541a122a5b9
parentaa8e535b576ecbf0cfba4caa01aaf074924ab8d6
Make the moved-from SmallPtrSet be a valid, empty, small-state object.
Enhance the tests to actually require moves in C++11 mode, in addition
to testing the moved-from state. Further enhance the tests to cover
copy-assignment into a moved-from object and moving a large-state
object. (Note that we can't really test small-state vs. large-state as
that isn't an observable property of the API really.) This should finish
addressing review on r195239.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195261 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallPtrSet.h
lib/Support/SmallPtrSet.cpp
unittests/ADT/SmallPtrSetTest.cpp