This is an archive of the discontinued LLVM Phabricator instance.

sanitizer_common: don't use [[no_unique_address]]
ClosedPublic

Authored by dvyukov on Jul 23 2021, 1:49 AM.

Details

Summary

https://lab.llvm.org/buildbot#builders/112/builds/7881
https://lab.llvm.org/buildbot#builders/121/builds/9907
https://lab.llvm.org/buildbot#builders/105/builds/12770
../../sanitizer_common/sanitizer_mutex.h:288:38: error:
'no_unique_address' attribute directive ignored [-Werror=attributes]

[[no_unique_address]] CheckedMutex checked_;

Diff Detail

Event Timeline

dvyukov requested review of this revision.Jul 23 2021, 1:49 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2021, 1:49 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Jul 23 2021, 1:52 AM

Right, this is only guaranteed to exist with C++20 or later. I guess we're not there yet.

This revision is now accepted and ready to land.Jul 23 2021, 1:52 AM
This revision was landed with ongoing or failed builds.Jul 23 2021, 1:55 AM
This revision was automatically updated to reflect the committed changes.