The standard says two equal pointers must compare equal so there is no need to call the user comparator function in this case.
Details
Details
Summary
Diff Detail
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Jul 21 2022, 3:04 PM
Closed by commit rG5e2d5071ffd7: [libc] Don't call user comparator function for equal pointers (authored by abrachet). · Explain WhyJul 22 2022, 10:03 AM
This revision was automatically updated to reflect the committed changes.