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)
commit40d4e34a1fa3efce647338c3929c2ad3244177f0
tree1602c443ff7421d81f0485770b2ebbac1e365ce7
parentd327828141855d7317116e9ef0bc74924b8527d9
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)

llvm-svn: 210429
llvm/include/llvm/ADT/SmallVector.h
llvm/unittests/ADT/SmallVectorTest.cpp