[llvm] Add clang::lifetimebound annotation to ArrayRef constructors. (PR #113547)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 11:17:01 PDT 2024


================
@@ -413,6 +413,12 @@
 #define LLVM_GSL_POINTER
 #endif
 
+#if LLVM_HAS_CPP_ATTRIBUTE(clang::lifetimebound)
+#define LLVM_LIFETIME_BOUND [[clang::lifetimebound]]
+#else
+#define LLVM_LLVM_LIFETIME_BOUND
----------------
dwblaikie wrote:

extra `LLVM_` here by accident?

https://github.com/llvm/llvm-project/pull/113547


More information about the llvm-commits mailing list