From 5aeda3f07684e555f19813e41b7fc101434cfe64 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Tue, 3 Apr 2012 01:35:52 +0000 Subject: 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 --- utils/TableGen/CodeGenRegisters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/TableGen') 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 & -- cgit v1.1