diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-06-08 16:00:02 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-06-08 16:00:02 +0000 |
commit | e570687bd8bff68921a2fa9840ad5aa270a8c9d8 (patch) | |
tree | cab9e031a8838a003c8dece669181cf44c6fabdb /utils/TableGen | |
parent | 6e0ab2f54c1ce957cd067a78b0dd34bd79cf1a54 (diff) | |
download | llvm-e570687bd8bff68921a2fa9840ad5aa270a8c9d8.tar.gz llvm-e570687bd8bff68921a2fa9840ad5aa270a8c9d8.tar.bz2 llvm-e570687bd8bff68921a2fa9840ad5aa270a8c9d8.tar.xz |
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
Diffstat (limited to 'utils/TableGen')
0 files changed, 0 insertions, 0 deletions