[llvm] [ADT] Add `[[clang::lifetimebound]]` annotations to Twine.h (PR #210474)
Benedek Kaibas via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 18 01:37:20 PDT 2026
================
@@ -458,7 +466,8 @@ class Twine {
/// This returns the twine as a single StringRef if it can be
/// represented as such. Otherwise the twine is written into the given
/// SmallVector and a StringRef to the SmallVector's data is returned.
- StringRef toStringRef(SmallVectorImpl<char> &Out) const {
+ StringRef toStringRef(SmallVectorImpl<char> &Out LLVM_LIFETIME_BOUND) const
----------------
benedekaibas wrote:
Resolved here: [ea5a904](https://github.com/llvm/llvm-project/pull/210474/commits/ea5a904db2f7a81cb80536f1f11e30c5b23ce5a3)
My local changes were not up to date with the PR, sorry.
https://github.com/llvm/llvm-project/pull/210474
More information about the llvm-commits
mailing list