summaryrefslogtreecommitdiff
path: root/utils/TableGen/DAGISelEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-02 18:15:02 +0000
committerChris Lattner <sabre@nondot.org>2010-03-02 18:15:02 +0000
commitd272fee39888253591586c56a3e2728067475e3f (patch)
treef2d64af4dae4042e3c4f46866b135b05b69765cd /utils/TableGen/DAGISelEmitter.cpp
parent93042d1dc803b26c7dce7bb75858e6a8c721d9d0 (diff)
downloadllvm-d272fee39888253591586c56a3e2728067475e3f.tar.gz
llvm-d272fee39888253591586c56a3e2728067475e3f.tar.bz2
llvm-d272fee39888253591586c56a3e2728067475e3f.tar.xz
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/TableGen/DAGISelEmitter.cpp')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp2
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;
}
};