This is an archive of the discontinued LLVM Phabricator instance.

[libc] Don't call user comparator function for equal pointers
ClosedPublic

Authored by abrachet on Jul 21 2022, 2:57 PM.

Details

Summary

The standard says two equal pointers must compare equal so there is no need to call the user comparator function in this case.

Diff Detail

Event Timeline

abrachet created this revision.Jul 21 2022, 2:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2022, 2:57 PM
abrachet requested review of this revision.Jul 21 2022, 2:57 PM
sivachandra accepted this revision.Jul 21 2022, 3:04 PM
This revision is now accepted and ready to land.Jul 21 2022, 3:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2022, 10:03 AM