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:
Chris Lattner 2010-03-02 18:15:02 +00:00
parent 44908a5e17
commit fb8c2b2f57
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
};