summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/CodeGenRegisters.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenRegisters.cpp b/llvm/utils/TableGen/CodeGenRegisters.cpp
index 35afaf8efbf..ddb5329fb79 100644
--- a/llvm/utils/TableGen/CodeGenRegisters.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud