Disable CFI checks in std::addressof.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 11 Mar 2016 23:50:57 +0000 (23:50 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 11 Mar 2016 23:50:57 +0000 (23:50 +0000)
commit1bc0e399ee553a912b2c679c1efad289d5dd5d4b
tree11448cd81e93ec280267156a88bd1eca815f6d23
parent7d0ec128c98e1592a07b6cf615dadfcdd3fa733a
Disable CFI checks in std::addressof.

std::addressof may be used on a storage of an object before the start
of its lifetime (see std::allocate_shared for example). CFI flags the
C-style cast as invalid in that case.

llvm-svn: 263310
libcxx/include/type_traits