summaryrefslogtreecommitdiffstats
path: root/llvm/utils
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
commitfb8c2b2f571b2c5465c498ddd7f60938f6b214ae (patch)
tree4642c82a7215ae10581177bbb40dfff6baf59e75 /llvm/utils
parent44908a5e1789362b26a6196095634026335046f1 (diff)
downloadbcm5719-llvm-fb8c2b2f571b2c5465c498ddd7f60938f6b214ae.tar.gz
bcm5719-llvm-fb8c2b2f571b2c5465c498ddd7f60938f6b214ae.zip
the sorting predicate should work for comparing an element
to itself, even though this isn't wildly useful. llvm-svn: 97574
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index 46e4b09507d..e0fa7c82f8c 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/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;
}
};
OpenPOWER on IntegriCloud