mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 22:32:08 +00:00
Use the proper comparator for set_intersection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0a251372f
commit
d4c826f648
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user