diff options
author | Pete Cooper <peter_cooper@apple.com> | 2016-03-23 22:00:09 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2016-03-23 22:00:09 +0000 |
commit | b565bdfb6eec2b550d509971c149b7610aa04079 (patch) | |
tree | 3273cf6c59d8dc796c38e7825b73495e8827a98a /clang/test/CodeGen/builtins.c | |
parent | b08d9060b77ee35d278397dfca54a72a86c3a9bb (diff) | |
download | bcm5719-llvm-b565bdfb6eec2b550d509971c149b7610aa04079.tar.gz bcm5719-llvm-b565bdfb6eec2b550d509971c149b7610aa04079.zip |
Use a memcpy to avoid unaligned store UB.
On a 32-bit output, we may write LC_SOURCE_VERSION (which contains a uint64_t) to
an unaligned address. This changes it to use a memcpy instead which is UB safe.
llvm-svn: 264202
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
0 files changed, 0 insertions, 0 deletions