This is an archive of the discontinued LLVM Phabricator instance.

Don't diagnostic atomic object access as UB in an unevaluated context
ClosedPublic

Authored by aaron.ballman on Mar 29 2022, 12:37 PM.

Details

Reviewers
jyknight
erichkeane
Group Reviewers
Restricted Project
Summary

We started diagnosing this situation with a more clear diagnostic message, but it was pointed out that unevaluated contexts don't really have the undefined behavior property as there is no runtime access involved.

This augments the changes in https://reviews.llvm.org/D122656 to not diagnose in an unevaluated context.

Diff Detail

Event Timeline

aaron.ballman created this revision.Mar 29 2022, 12:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2022, 12:37 PM
aaron.ballman requested review of this revision.Mar 29 2022, 12:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2022, 12:37 PM
erichkeane accepted this revision.Mar 29 2022, 12:39 PM
This revision is now accepted and ready to land.Mar 29 2022, 12:39 PM

Ah! Release notes!

Ah! Release notes!

I didn't add one because this is augmenting https://reviews.llvm.org/D122656 which already added the release note. :-)

Ah! Release notes!

I didn't add one because this is augmenting https://reviews.llvm.org/D122656 which already added the release note. :-)

Ah! SGTM!

jyknight accepted this revision.Mar 29 2022, 12:48 PM
aaron.ballman closed this revision.Mar 30 2022, 4:13 AM

Thank you for the reviews, I've commit in cf4a67bcbbb109347b1e2d6cedf69bae142a182f.