diff options
author | Jez Ng <jezng@fb.com> | 2020-05-21 15:26:35 -0700 |
---|---|---|
committer | Jez Ng <jezng@fb.com> | 2020-06-02 13:19:38 -0700 |
commit | 1e1a3f67ee717ebb71c461e51c5c233a13f25edb (patch) | |
tree | 36bdda9575c6febe64532c07dbfc060d9c22d866 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | f04d1c3b90c19f5c01b99f8fcd5794a6b338f124 (diff) | |
download | llvm-1e1a3f67ee717ebb71c461e51c5c233a13f25edb.zip llvm-1e1a3f67ee717ebb71c461e51c5c233a13f25edb.tar.gz llvm-1e1a3f67ee717ebb71c461e51c5c233a13f25edb.tar.bz2 |
[lld-macho] Ensure reads from nlist_64 structs are aligned when necessary
My test refactoring in D80217 seems to have caused yaml2obj to emit
unaligned nlist_64 structs, causing ASAN'd lld to be unhappy. I don't
think this is an issue with yaml2obj though -- llvm-mc also seems to
emit unaligned nlist_64s. This diff makes lld able to safely do aligned
reads under ASAN builds while hopefully creating no overhead for regular
builds on architectures that support unaligned reads.
Reviewed By: thakis
Differential Revision: https://reviews.llvm.org/D80414
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions