aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/API.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2022-03-29 12:13:54 -0400
committerAaron Ballman <aaron@aaronballman.com>2022-03-29 12:14:36 -0400
commit3c84e4a0dbd08fc03bbcdd8354a984e0efcf7672 (patch)
tree33dab42621848f1d0a4d6aa2a432596771d85e24 /clang/lib/ExtractAPI/API.cpp
parent95eac47260542fc51616bf6ee147a3b85342d72a (diff)
downloadllvm-3c84e4a0dbd08fc03bbcdd8354a984e0efcf7672.zip
llvm-3c84e4a0dbd08fc03bbcdd8354a984e0efcf7672.tar.gz
llvm-3c84e4a0dbd08fc03bbcdd8354a984e0efcf7672.tar.bz2
[C11] Improve the diagnostic when accessing a member of an atomic struct
Member access for an atomic structure or union is unconditional undefined behavior (C11 6.5.2.3p5). However, we would issue a confusing error message about the base expression not being a structure or union type. GCC issues a warning for this case. Clang now warns as well, but the warning is defaulted to an error because the actual access is still unsafe. This fixes Issue 54563.
Diffstat (limited to 'clang/lib/ExtractAPI/API.cpp')
0 files changed, 0 insertions, 0 deletions