commit | 1895991a084d5d45d091a24542ad111946738e70 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Aug 16 16:57:24 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Aug 16 16:57:24 2010 +0000 |
tree | a9927a6910e81af8d3c26e4aa240d2c53e580ce9 | |
parent | 0ab754b25ae3fb1a9ebd09585c70084f9400f69d [diff] |
To create a copy of a SmallVector with an element removed from the middle, copy the elements in two groups, rather than copying all the elements and then doing an erase on the middle of the result. These are SmallVectors, so we shouldn't expect to hit dynamic allocation in the common case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111151 91177308-0d34-0410-b5e6-96231b3b80d8