diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-01-09 22:27:06 +0100 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-01-14 02:54:33 +0100 |
commit | 277a9f6e5f85bfa1c58ca21c26a5a74326f002ff (patch) | |
tree | 8a37e6e291ca5bc511c2c2e5b876d9f7bda3f1be /clang/lib/CodeGen/BackendUtil.cpp | |
parent | dc9c41125caa07b4f4ad0b6cb3348b499dbcf3a5 (diff) | |
download | llvm-277a9f6e5f85bfa1c58ca21c26a5a74326f002ff.zip llvm-277a9f6e5f85bfa1c58ca21c26a5a74326f002ff.tar.gz llvm-277a9f6e5f85bfa1c58ca21c26a5a74326f002ff.tar.bz2 |
[libc++] Add [[clang::lifetimebound]] attribute to std::forward and friends
This allows clang to catch lifetime bugs through these functions.
As a drive-by, replace `_LIBCPP_INLINE_VISIBILITY` with `_LIBCPP_HIDE_FROM_ABI`.
Fixes #59900
Reviewed By: ldionne, #libc
Spies: rsmith, rnk, aaron.ballman, libcxx-commits
Differential Revision: https://reviews.llvm.org/D141321
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions