[libcxx-commits] [libcxx] [libc++] Add `_LIBCPP_NO_CFI` to `__allocate_unique_temporary_buffer` (PR #109682)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Sep 23 09:09:31 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: A. Jiang (frederick-vs-ja)
<details>
<summary>Changes</summary>
Follows up #<!-- -->100914. Addresses the issue revealed in https://github.com/llvm/llvm-project/pull/100914#discussion_r1771647801.
---
Full diff: https://github.com/llvm/llvm-project/pull/109682.diff
1 Files Affected:
- (modified) libcxx/include/__memory/unique_temporary_buffer.h (+1-1)
``````````diff
diff --git a/libcxx/include/__memory/unique_temporary_buffer.h b/libcxx/include/__memory/unique_temporary_buffer.h
index b9e2a47332682f..001254e8fa4be1 100644
--- a/libcxx/include/__memory/unique_temporary_buffer.h
+++ b/libcxx/include/__memory/unique_temporary_buffer.h
@@ -47,7 +47,7 @@ template <class _Tp>
using __unique_temporary_buffer = unique_ptr<_Tp, __temporary_buffer_deleter<_Tp> >;
template <class _Tp>
-inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 __unique_temporary_buffer<_Tp>
+inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_NO_CFI _LIBCPP_CONSTEXPR_SINCE_CXX23 __unique_temporary_buffer<_Tp>
__allocate_unique_temporary_buffer(ptrdiff_t __count) {
using __deleter_type = __temporary_buffer_deleter<_Tp>;
using __unique_buffer_type = __unique_temporary_buffer<_Tp>;
``````````
</details>
https://github.com/llvm/llvm-project/pull/109682
More information about the libcxx-commits
mailing list