This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Fixes operator& hijacking atomic types.
ClosedPublic

Authored by Mordante on Feb 25 2023, 6:44 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rGf41f39252093: [libc++] Fixes operator& hijacking atomic types.
Summary

This uses std::addressof everywherein atomic. This is not strictly
needed for the integral and floating point specializations. They should
not be used by user defined types. But it's easier to fix everything.

Note these changes are made using a WIP clang-tidy plugin.

Diff Detail

Event Timeline

Mordante created this revision.Feb 25 2023, 6:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2023, 6:44 AM
Mordante requested review of this revision.Feb 25 2023, 6:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2023, 6:44 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante updated this revision to Diff 500586.Feb 26 2023, 8:05 AM

Tries to fix Apple back-deployment

ldionne accepted this revision.Feb 27 2023, 10:09 AM
This revision is now accepted and ready to land.Feb 27 2023, 10:09 AM
This revision was landed with ongoing or failed builds.Feb 27 2023, 10:23 AM
This revision was automatically updated to reflect the committed changes.