forked from OSchip/llvm-project
the sorting predicate should work for comparing an element
to itself, even though this isn't wildly useful. llvm-svn: 97574
This commit is contained in:
parent
44908a5e17
commit
fb8c2b2f57
|
@ -180,7 +180,7 @@ struct PatternSortingPredicate {
|
|||
if (LHSPatSize > RHSPatSize) return false;
|
||||
|
||||
// Sort based on the UID of the pattern, giving us a deterministic ordering.
|
||||
assert(LHS->ID != RHS->ID);
|
||||
assert(LHS == RHS || LHS->ID != RHS->ID);
|
||||
return LHS->ID < RHS->ID;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue