diff options
author | Tim Northover <tnorthover@apple.com> | 2018-04-23 08:16:24 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2018-04-23 08:16:24 +0000 |
commit | 9dc1d0c74eb1f566ef20e307b0cdda1f79d4cbee (patch) | |
tree | 5a8cedadab811c489ac6d8cff61641098286319a /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 1b6d3744229f6953bad081c5b80fce91e4913731 (diff) | |
download | bcm5719-llvm-9dc1d0c74eb1f566ef20e307b0cdda1f79d4cbee.tar.gz bcm5719-llvm-9dc1d0c74eb1f566ef20e307b0cdda1f79d4cbee.zip |
[Atomics] warn about atomic accesses using libcalls
If an atomic variable is misaligned (and that suspicion is why Clang emits
libcalls at all) the runtime support library will have to use a lock to safely
access it, with potentially very bad performance consequences. There's a very
good chance this is unintentional so it makes sense to issue a warning.
Also give it a named group so people can promote it to an error, or disable it
if they really don't care.
llvm-svn: 330566
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions