]> granicus.if.org Git - llvm/commit
Correct OptionCategoryCompare() in the command line library.
authorDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 27 Mar 2017 13:43:24 +0000 (13:43 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 27 Mar 2017 13:43:24 +0000 (13:43 +0000)
commitdf544d6b0bcb3c5cbfb1df39cee14aa59d8955ba
treed32819ee7bd6752f9f441294bf0cb92fa8e660f4
parentd5d860727bf653384b60eae7a1c2fdc8fd01ab30
Correct OptionCategoryCompare() in the command line library.

Summary:
It should return <0, 0, or >0 for less-than, equal, and greater-than like
strcmp() (according to the history, it used to be implemented with
strcmp()) but it actually returned 0, or 1 for not-equal and equal.

Reviewers: qcolombet

Reviewed By: qcolombet

Subscribers: qcolombet, llvm-commits

Differential Revision: https://reviews.llvm.org/D30996

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298844 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/CommandLine.cpp