OSDN Git Service

Fixed warning: dereferencing type-punned pointer will break strict-aliasing rules.
authorGalina Kistanova <gkistanova@gmail.com>
Thu, 8 Jun 2017 23:35:52 +0000 (23:35 +0000)
committerGalina Kistanova <gkistanova@gmail.com>
Thu, 8 Jun 2017 23:35:52 +0000 (23:35 +0000)
commit11898c48c5c7a29671642b92265d13a940daa11d
treebd32806057635c4ef0e0d5eb19bf8207993eba0e
parenteca66d0b34e00173c623507859bf7a957137011f
Fixed warning: dereferencing type-punned pointer will break strict-aliasing rules.

No need in reinterpret_cast<StringTableOffset &> here, as struct coff_symbol Name is a unin
with the member StringTableOffset Offset. This union member could be accessed directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305029 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/COFFImportFile.cpp