sanitizer_common: Fix warning
authorMatthias Braun <matze@braunis.de>
Tue, 16 Aug 2016 18:28:55 +0000 (18:28 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 16 Aug 2016 18:28:55 +0000 (18:28 +0000)
commit0761b5253d57690e43cca9f4cc8155ecf223ee17
tree3083e161f5e534c68e06895710f120d503166aa1
parent8dd4e702222500192ec1b5e64b2e83b29c7afac7
sanitizer_common: Fix warning

Clang added warning that taking the address of a packed struct member
possibly yields an unaligned pointer. This case is benign because
the pointer gets casted to an uptr and not used for unaligned accesses.
Add an intermediate cast to char* until this warning is improved (see
also https://reviews.llvm.org/D20561)

llvm-svn: 278835
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc