[libcxx] r322744 - libcxx: Disable CFI in function std::get_temporary_buffer.

Peter Collingbourne via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 11:32:35 PST 2018


Author: pcc
Date: Wed Jan 17 11:32:35 2018
New Revision: 322744

URL: http://llvm.org/viewvc/llvm-project?rev=322744&view=rev
Log:
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

Modified:
    libcxx/trunk/include/memory

Modified: libcxx/trunk/include/memory
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/memory?rev=322744&r1=322743&r2=322744&view=diff
==============================================================================
--- libcxx/trunk/include/memory (original)
+++ libcxx/trunk/include/memory Wed Jan 17 11:32:35 2018
@@ -1992,6 +1992,7 @@ public:
 };
 
 template <class _Tp>
+_LIBCPP_NO_CFI
 pair<_Tp*, ptrdiff_t>
 get_temporary_buffer(ptrdiff_t __n) _NOEXCEPT
 {




More information about the cfe-commits mailing list