Fix an off by 1 bug that prevented SmallPtrSet from using all of its 'small' capacity...
authorCraig Topper <craig.topper@gmail.com>
Wed, 20 Aug 2014 04:41:36 +0000 (04:41 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 20 Aug 2014 04:41:36 +0000 (04:41 +0000)
commit78832c6e7d33094c6ef9e99b07dac6f60c0a1207
tree281a72af19fdde12ca7108e662196865fe9eed2d
parentae8d297579f7fef5faa19bc4211347a252374914
Fix an off by 1 bug that prevented SmallPtrSet from using all of its 'small' capacity. Then fix the early return in the move constructor that prevented 'small' moves from clearing the NumElements in the moved from object. The directed test missed this because it was always testing large moves due to the off by 1 bug.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216044 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/SmallPtrSet.cpp