summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-12-15 19:26:23 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-12-15 19:26:23 +0000
commitd4c826f64866295fcbfa472d812bd3ec3a5e4c9f (patch)
tree87ed8f5994355c61fb5cb9189f5df724a0511ea6 /utils
parenta0a251372f838a6a916812cfff87cc0d71072d81 (diff)
downloadllvm-d4c826f64866295fcbfa472d812bd3ec3a5e4c9f.tar.gz
llvm-d4c826f64866295fcbfa472d812bd3ec3a5e4c9f.tar.bz2
llvm-d4c826f64866295fcbfa472d812bd3ec3a5e4c9f.tar.xz
Use the proper comparator for set_intersection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CodeGenRegisters.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenRegisters.cpp b/utils/TableGen/CodeGenRegisters.cpp
index 35afaf8efb..ddb5329fb7 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())