SmallPtrSet: Copy all the elements when swapping, not just numelements.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 7 Mar 2012 22:33:21 +0000 (22:33 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 7 Mar 2012 22:33:21 +0000 (22:33 +0000)
commit24e0e7c11fef4dd05fa72faf53846a323eb16bb5
treed9fac862ce8d1457025379943d8ee9134382dee1
parent44c98b71148d11368c18ffb9c14e8a28a76a8021
SmallPtrSet: Copy all the elements when swapping, not just numelements.

This fixes a build failure in webkit. Copying all elements shouldn't be
necessary, I'll look out for a better fix soon.

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