diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-02-05 16:56:37 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-02-05 16:56:37 +0000 |
commit | 0644c7a8aba4defca316c6dfa3485a79fe71e2b6 (patch) | |
tree | 9eaccfb76a53110a32acc9abca35d65cd59ac17c /test/CodeGen/Mips/fp-indexed-ls.ll | |
parent | 6c0351c9963e693c8530b300b66726fd78287be1 (diff) |
Fix an invalid check for duplicate option categories.
Summary:
The check performed in the comparator is invalid, as some STL
implementations enforce strict weak ordering by calling the comparator with the
same value. This check was also in a wrong place: the assertion would only fire
when -help was used. The new check is performed each time the category is
registered (we are not going to have thousands of them, so it's fine to do it in
O(N^2)).
Reviewers: jordan_rose
Reviewed By: jordan_rose
CC: cfe-commits, alexmc
Differential Revision: http://llvm-reviews.chandlerc.com/D2699
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/fp-indexed-ls.ll')
0 files changed, 0 insertions, 0 deletions