libcxx: Disable CFI in function std::get_temporary_buffer.

The specification of this function mandates a cast to uninitialized
T*, which is forbidden under CFI.

Differential Revision: https://reviews.llvm.org/D42146

llvm-svn: 322744
This commit is contained in:
Peter Collingbourne 2018-01-17 19:32:35 +00:00
parent 18b3f9d384
commit b89956c812
1 changed files with 1 additions and 0 deletions

View File

@ -1992,6 +1992,7 @@ public:
};
template <class _Tp>
_LIBCPP_NO_CFI
pair<_Tp*, ptrdiff_t>
get_temporary_buffer(ptrdiff_t __n) _NOEXCEPT
{