diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-02 18:15:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-02 18:15:02 +0000 |
commit | d272fee39888253591586c56a3e2728067475e3f (patch) | |
tree | f2d64af4dae4042e3c4f46866b135b05b69765cd /utils | |
parent | 93042d1dc803b26c7dce7bb75858e6a8c721d9d0 (diff) |
the sorting predicate should work for comparing an element
to itself, even though this isn't wildly useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 46e4b09507..e0fa7c82f8 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -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; } }; |