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 | fb8c2b2f571b2c5465c498ddd7f60938f6b214ae (patch) | |
| tree | 4642c82a7215ae10581177bbb40dfff6baf59e75 /llvm/utils | |
| parent | 44908a5e1789362b26a6196095634026335046f1 (diff) | |
| download | bcm5719-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.cpp | 2 |
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; } }; |

