summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-03-24 01:03:44 +0000
committerPete Cooper <peter_cooper@apple.com>2016-03-24 01:03:44 +0000
commita13f62f5f822aa7ea0e394c267b25400f8b88976 (patch)
tree71666f4646ee85fdce17ca9e9c15d708e62a59c8 /clang/lib/Frontend/CompilerInvocation.cpp
parent6278f933a87c40bcfd95e23c91574d9f245c0b5e (diff)
downloadbcm5719-llvm-a13f62f5f822aa7ea0e394c267b25400f8b88976.tar.gz
bcm5719-llvm-a13f62f5f822aa7ea0e394c267b25400f8b88976.zip
Use unaligned read to fix UB. NFC.
We were casting a potentially unaligned pointer to uint32_t and dereferencing. As the pointer ultimately comes from the object file, there's no way to guarantee alignment, so use the little32_t read instead. Also, little32_t knows about endianness, so in theory this may have broken on big endian machines. llvm-svn: 264231
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud