diff options
author | Andrew Trick <atrick@apple.com> | 2012-04-03 01:35:52 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-04-03 01:35:52 +0000 |
commit | 5aeda3f07684e555f19813e41b7fc101434cfe64 (patch) | |
tree | 7063fc9444974f07f3bef1dd0ef277078f80e9b2 /utils/TableGen | |
parent | f1275959b2b6ac5212e8b5547251b0303168b0b1 (diff) | |
download | external_llvm-5aeda3f07684e555f19813e41b7fc101434cfe64.zip external_llvm-5aeda3f07684e555f19813e41b7fc101434cfe64.tar.gz external_llvm-5aeda3f07684e555f19813e41b7fc101434cfe64.tar.bz2 |
Cleanup set_union usage. The same thing but a bit cleaner now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/CodeGenRegisters.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenRegisters.cpp b/utils/TableGen/CodeGenRegisters.cpp index 609bf54..6784d53 100644 --- a/utils/TableGen/CodeGenRegisters.cpp +++ b/utils/TableGen/CodeGenRegisters.cpp @@ -95,7 +95,7 @@ static void mergeRegUnits(CodeGenRegister::RegUnitList &MergedRU, CodeGenRegister::RegUnitList LRU = MergedRU; MergedRU.clear(); std::set_union(LRU.begin(), LRU.end(), RRU.begin(), RRU.end(), - std::inserter(MergedRU, MergedRU.begin())); + std::back_inserter(MergedRU)); } const CodeGenRegister::SubRegMap & |