diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2025-05-15 12:24:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-15 12:24:12 -0400 |
commit | 0eb4bd27d1ab15ea6b078ac386be01ae13d261a9 (patch) | |
tree | 42db64c9f959b325272eb4eb5861530faef209e6 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 5defe490c9b1356916245e1832859c361ac8d812 (diff) | |
download | llvm-0eb4bd27d1ab15ea6b078ac386be01ae13d261a9.zip llvm-0eb4bd27d1ab15ea6b078ac386be01ae13d261a9.tar.gz llvm-0eb4bd27d1ab15ea6b078ac386be01ae13d261a9.tar.bz2 |
[C] Silence unreachable -Watomic-access diagnostics (#140064)
Accessing the member of a structure or union which is _Atomic-qualified
is undefined behavior in C. We currently diagnose that with a warning
that defaults to an error. In turn, this means we reject a valid program
if the access it not reachable because of the error. e.g.,
if (0)
SomeAtomicStruct.Member = 12; // Was diagnosed
This silences the diagnostic if the member access is not reachable.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions