This is an archive of the discontinued LLVM Phabricator instance.

Correct OptionCategoryCompare() in the command line library.
ClosedPublic

Authored by dsanders on Mar 15 2017, 12:19 PM.

Details

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.

Event Timeline

dsanders created this revision.Mar 15 2017, 12:19 PM
qcolombet accepted this revision.Mar 24 2017, 7:00 PM
qcolombet added a subscriber: qcolombet.

LGTM

This revision is now accepted and ready to land.Mar 24 2017, 7:00 PM
dsanders closed this revision.Mar 27 2017, 6:55 AM