[llvm-commits] [llvm] r146674 - /llvm/trunk/utils/TableGen/CodeGenRegisters.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Dec 15 11:26:23 PST 2011


Author: stoklund
Date: Thu Dec 15 13:26:23 2011
New Revision: 146674

URL: http://llvm.org/viewvc/llvm-project?rev=146674&view=rev
Log:
Use the proper comparator for set_intersection.

Modified:
    llvm/trunk/utils/TableGen/CodeGenRegisters.cpp

Modified: llvm/trunk/utils/TableGen/CodeGenRegisters.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenRegisters.cpp?rev=146674&r1=146673&r2=146674&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenRegisters.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenRegisters.cpp Thu Dec 15 13:26:23 2011
@@ -775,7 +775,8 @@
     CodeGenRegister::Set Intersection;
     std::set_intersection(Memb1.begin(), Memb1.end(),
                           Memb2.begin(), Memb2.end(),
-                          std::inserter(Intersection, Intersection.begin()));
+                          std::inserter(Intersection, Intersection.begin()),
+                          CodeGenRegister::Less());
 
     // Skip disjoint class pairs.
     if (Intersection.empty())





More information about the llvm-commits mailing list