mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-24 19:44:49 +00:00
Use the correct comparator to avoid depending on pointer values.
This should fix the Linux buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
abdbc84b4e
commit
c6596e2edc
@ -245,7 +245,8 @@ bool CodeGenRegisterClass::hasSubClass(const CodeGenRegisterClass *RC) const {
|
||||
return SpillAlignment && RC->SpillAlignment % SpillAlignment == 0 &&
|
||||
SpillSize <= RC->SpillSize &&
|
||||
std::includes(Members.begin(), Members.end(),
|
||||
RC->Members.begin(), RC->Members.end());
|
||||
RC->Members.begin(), RC->Members.end(),
|
||||
CodeGenRegister::Less());
|
||||
}
|
||||
|
||||
const std::string &CodeGenRegisterClass::getName() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user