1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Change sort function used in tblgen to be strict weak ordering

The windows debug is failing as the sort function is not strict
weak ordering, so switch a >= to a >.

llvm-svn: 306422
This commit is contained in:
David Green 2017-06-27 16:28:44 +00:00
parent 85cee38b9a
commit 32bf22f9d8

View File

@ -920,7 +920,7 @@ CodeGenRegisterClass::getMatchingSubClassWithSubRegs(
CodeGenRegBank &RegBank, const CodeGenSubRegIndex *SubIdx) const {
auto SizeOrder = [](const CodeGenRegisterClass *A,
const CodeGenRegisterClass *B) {
return A->getMembers().size() >= B->getMembers().size();
return A->getMembers().size() > B->getMembers().size();
};
auto &RegClasses = RegBank.getRegClasses();