This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove overly conservative error in <stdatomic.h>
ClosedPublic

Authored by ldionne on May 13 2022, 1:15 PM.

Details

Summary

As mentionned in D97044, it is fine if users include <atomic> and then
include <stdatomic.h> -- we don't need to error out for that case.

Diff Detail

Event Timeline

ldionne created this revision.May 13 2022, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2022, 1:15 PM
ldionne requested review of this revision.May 13 2022, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2022, 1:15 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript

@rnk @dblaikie Can you perhaps see if this patch helps with the issues you were encountering?

rnk added a comment.May 13 2022, 2:29 PM

Sorry, I can't easily test this patch, but I do think it's probably the right direction.

ldionne updated this revision to Diff 429688.May 16 2022, 5:34 AM

Fix CI issues

ldionne accepted this revision as: Restricted Project.May 16 2022, 12:29 PM
This revision was not accepted when it landed; it landed in state Needs Review.May 16 2022, 12:30 PM
This revision was automatically updated to reflect the committed changes.
libcxx/test/libcxx/atomics/atomics.syn/incompatible_with_stdatomic.verify.cpp