Use a memcpy to avoid unaligned store UB.
authorPete Cooper <peter_cooper@apple.com>
Wed, 23 Mar 2016 22:00:09 +0000 (22:00 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 23 Mar 2016 22:00:09 +0000 (22:00 +0000)
commitb565bdfb6eec2b550d509971c149b7610aa04079
tree3273cf6c59d8dc796c38e7825b73495e8827a98a
parentb08d9060b77ee35d278397dfca54a72a86c3a9bb
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
lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp