summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-03-24 01:05:17 +0000
committerPete Cooper <peter_cooper@apple.com>2016-03-24 01:05:17 +0000
commit07601d33f8349b563e1b5d8c12ec59aa49b0deca (patch)
treee349da697a6c2d926737f53722098aaaca89a233 /clang/lib/Frontend/CompilerInvocation.cpp
parenta13f62f5f822aa7ea0e394c267b25400f8b88976 (diff)
downloadbcm5719-llvm-07601d33f8349b563e1b5d8c12ec59aa49b0deca.tar.gz
bcm5719-llvm-07601d33f8349b563e1b5d8c12ec59aa49b0deca.zip
Use a memcpy to avoid unaligned store UB.
On a 32-bit output, we may write LC_MAIN (which contains a uint64_t) to an unaligned address. This changes it to use a memcpy instead which is UB safe. llvm-svn: 264232
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud