[PATCH] D63699: [llvm-objcopy][MachO] Fix strict-aliasing warning. NFCI
Seiya Nuta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 16:40:53 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL364252: [llvm-objcopy][MachO] Fix strict-aliasing warning. NFCI (authored by seiya, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D63699?vs=206154&id=206327#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63699/new/
https://reviews.llvm.org/D63699
Files:
llvm/trunk/tools/llvm-objcopy/MachO/MachOReader.cpp
Index: llvm/trunk/tools/llvm-objcopy/MachO/MachOReader.cpp
===================================================================
--- llvm/trunk/tools/llvm-objcopy/MachO/MachOReader.cpp
+++ llvm/trunk/tools/llvm-objcopy/MachO/MachOReader.cpp
@@ -101,9 +101,7 @@
RelocationInfo R;
R.Symbol = nullptr; // We'll fill this field later.
R.Info = MachOObj.getRelocation(RI->getRawDataRefImpl());
- R.Scattered =
- reinterpret_cast<MachO::scattered_relocation_info *>(&R.Info)
- ->r_scattered;
+ R.Scattered = MachOObj.isRelocationScattered(R.Info);
S.Relocations.push_back(R);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63699.206327.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190624/12dfbec3/attachment.bin>
More information about the llvm-commits
mailing list