From b89956c812bbb4d3196acb2e0db49051ad3d6e20 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 17 Jan 2018 19:32:35 +0000 Subject: [PATCH] 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 --- libcxx/include/memory | 1 + 1 file changed, 1 insertion(+) diff --git a/libcxx/include/memory b/libcxx/include/memory index 56502e2..2273731 100644 --- a/libcxx/include/memory +++ b/libcxx/include/memory @@ -1992,6 +1992,7 @@ public: }; template +_LIBCPP_NO_CFI pair<_Tp*, ptrdiff_t> get_temporary_buffer(ptrdiff_t __n) _NOEXCEPT { -- 2.7.4