Fix some more moving-from-moved-from objects issues in SmallVector
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 8 Jun 2014 16:55:13 +0000 (16:55 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 8 Jun 2014 16:55:13 +0000 (16:55 +0000)
commit9262e52075b293289f91ccab06d04536d3d53a46
tree70ab7fb853e5b5effe05d4644ba5dd493f0fd2e3
parentbef256f49b77b17503b23699466d9bfc2f02d65f
Fix some more moving-from-moved-from objects issues in SmallVector

(& because it makes it easier to test, this also improves
correctness/performance slightly by moving the last element in an insert
operation, rather than copying it)

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