mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Replace std::copy with a back inserter with vector append where feasible
All of the cases were just appending from random access iterators to a vector. Using insert/append can grow the vector to the perfect size directly and moves the growing out of the loop. No intended functionalty change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1447,8 +1447,9 @@ void AsmMatcherInfo::buildInfo() {
|
||||
II->buildAliasResultOperands();
|
||||
}
|
||||
if (!NewMatchables.empty())
|
||||
std::move(NewMatchables.begin(), NewMatchables.end(),
|
||||
std::back_inserter(Matchables));
|
||||
Matchables.insert(Matchables.end(),
|
||||
std::make_move_iterator(NewMatchables.begin()),
|
||||
std::make_move_iterator(NewMatchables.end()));
|
||||
|
||||
// Process token alias definitions and set up the associated superclass
|
||||
// information.
|
||||
|
||||
Reference in New Issue
Block a user