]> granicus.if.org Git - llvm/commit
[MachOYAML] Use a temporary to avoid gcc strict-aliasing warning
authorChris Bieneman <beanz@apple.com>
Thu, 23 Jun 2016 23:01:47 +0000 (23:01 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 23 Jun 2016 23:01:47 +0000 (23:01 +0000)
commit072362b093f877de26bfd710fec30852e57a2edf
tree98abe1d015c006a86fc06469242b8f1e4ac71793
parentb234de31c2a569b4f9277fc309adb935522b473e
[MachOYAML] Use a temporary to avoid gcc strict-aliasing warning

GCC complains about this with -Wstrict-aliasing. Using a temporary here should prevent the warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273627 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ObjectYAML/MachOYAML.cpp