diff options
author | Tim Northover <tnorthover@apple.com> | 2015-11-09 19:56:35 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2015-11-09 19:56:35 +0000 |
commit | cc2a6e0608738498cf4e677baf8566460c7083b4 (patch) | |
tree | 982693aaff11a52f1e880f0c585554781d740391 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | 9c76869bc33c25d07d5b4ed3eacf310e3f3537cb (diff) | |
download | llvm-cc2a6e0608738498cf4e677baf8566460c7083b4.zip llvm-cc2a6e0608738498cf4e677baf8566460c7083b4.tar.gz llvm-cc2a6e0608738498cf4e677baf8566460c7083b4.tar.bz2 |
Atomics: support __c11_* calls on _Atomic struct types.
When a struct's size is not a power of 2, the corresponding _Atomic() type is
promoted to the nearest. We already correctly handled normal C++ expressions of
this form, but direct calls to the __c11_atomic_whatever builtins ended up
performing dodgy operations on the smaller non-atomic types (e.g. memcpy too
much). Later optimisations removed this as undefined behaviour.
This patch converts EmitAtomicExpr to allocate its temporaries at the full
atomic width, sidestepping the issue.
llvm-svn: 252507
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
0 files changed, 0 insertions, 0 deletions