David Blaikie e570687bd8 Ensure SmallVector::insert doesn't overwrite the last element in the range with the already-moved-from value
This would cause the last element in a range to be in a moved-from state
after an insert at a non-end position, losing that value entirely in the
process.

Side note: move_backward is subtle. It copies [A, B) to C-1 and down.
(the fact that it decrements both the second and third iterators before
the first movement is the subtle part... kind of surprising, anyway)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210426 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-08 16:00:02 +00:00
..
2014-04-28 04:05:08 +00:00
2014-04-24 06:44:33 +00:00
2014-04-24 06:44:33 +00:00
2014-04-24 06:44:33 +00:00
2014-04-24 06:44:33 +00:00
2014-04-25 20:52:08 +00:00
2014-05-08 21:53:33 +00:00