From: Jakob Stoklund Olesen Date: Thu, 15 Dec 2011 19:26:23 +0000 (+0000) Subject: Use the proper comparator for set_intersection. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d4c826f64866295fcbfa472d812bd3ec3a5e4c9f;p=oota-llvm.git Use the proper comparator for set_intersection. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146674 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/CodeGenRegisters.cpp b/utils/TableGen/CodeGenRegisters.cpp index 35afaf8efbf..ddb5329fb79 100644 --- a/utils/TableGen/CodeGenRegisters.cpp +++ b/utils/TableGen/CodeGenRegisters.cpp @@ -775,7 +775,8 @@ void CodeGenRegBank::inferCommonSubClass(CodeGenRegisterClass *RC) { 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())