[clang] [clang] Add __builtin_start_object_lifetime builtin. (PR #82776)

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 14:11:08 PST 2024


================
@@ -896,6 +896,12 @@ def Launder : Builtin {
   let Prototype = "void*(void*)";
 }
 
+def StartObjectLifeTime : Builtin {
+  let Spellings = ["__builtin_start_object_lifetime"];
----------------
sam-mccall wrote:

nit, I'd consider `__builtin_start_lifetime` both for brevity and to parallel `std::start_lifetime_as`.
I don't think it's really ambiguous what we're starting the lifetime of.

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


More information about the cfe-commits mailing list