This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove workarounds for missing __builtin_addressof
ClosedPublic

Authored by ldionne on Aug 11 2021, 7:36 AM.

Details

Summary

All supported compilers implement builtin_addressof. Even MSVC implements
addressof as a simple call to
builtin_addressof, so it would work if we
were to port libc++ to that compiler.

Diff Detail

Event Timeline

ldionne created this revision.Aug 11 2021, 7:36 AM
ldionne requested review of this revision.Aug 11 2021, 7:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2021, 7:36 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Quuxplusone added a subscriber: Quuxplusone.

LGTM if buildkite's happy.

ldionne accepted this revision as: Restricted Project.Aug 11 2021, 9:40 AM
This revision is now accepted and ready to land.Aug 11 2021, 9:40 AM
libcxx/include/version