[PATCH] D42146: libcxx: Disable CFI in function std::get_temporary_buffer.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 16:31:18 PST 2018
pcc created this revision.
pcc added reviewers: mclow.lists, EricWF.
The specification of this function mandates a cast to uninitialized
T*, which is forbidden under CFI.
https://reviews.llvm.org/D42146
Files:
libcxx/include/memory
Index: libcxx/include/memory
===================================================================
--- libcxx/include/memory
+++ libcxx/include/memory
@@ -1992,6 +1992,7 @@
};
template <class _Tp>
+_LIBCPP_NO_CFI
pair<_Tp*, ptrdiff_t>
get_temporary_buffer(ptrdiff_t __n) _NOEXCEPT
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42146.130063.patch
Type: text/x-patch
Size: 288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/fab1d5fc/attachment.bin>
More information about the llvm-commits
mailing list