This is an archive of the discontinued LLVM Phabricator instance.

[TextAPI] Make sortTargetValues strict weak ordering compliant
ClosedPublic

Authored by danlark on Aug 15 2023, 2:30 AM.

Details

Summary

Second sorting was not following strict weak ordering as it
does not follow transitivity of equivalence property.

If you build llvm with libcxx at head as a standard library with -D_LIBCPP_DEBUG_STRICT_WEAK_ORDERING_CHECK and -D_LIBCPP_ENABLE_DEBUG_MODE, then tests like llvm/test/tools/llvm-readtapi/compare-right-single-inline.test.test will fail

I don't have commit rights. Danila Kutenin kudanila@yandex.ru

Diff Detail

Event Timeline

danlark created this revision.Aug 15 2023, 2:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2023, 2:30 AM
danlark requested review of this revision.Aug 15 2023, 2:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2023, 2:30 AM
cishida accepted this revision.Aug 21 2023, 8:09 AM

LGTM, thanks!

I don't have commit rights

I'll commit this for you on main.

This revision is now accepted and ready to land.Aug 21 2023, 8:09 AM
This revision was landed with ongoing or failed builds.Aug 21 2023, 8:57 AM
This revision was automatically updated to reflect the committed changes.