[clang] [clang] Add __builtin_start_object_lifetime builtin. (PR #82776)
    A. Jiang via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sun Feb 25 06:53:00 PST 2024
    
    
  
================
@@ -896,6 +896,12 @@ def Launder : Builtin {
   let Prototype = "void*(void*)";
 }
 
+def StartObjectLifeTime : Builtin {
+  let Spellings = ["__builtin_start_object_lifetime"];
----------------
frederick-vs-ja wrote:
IMO if the intent of this intrinsic is to handle polymorphic classes (which is not covered by `std::start_lifetime_as`), its name should diverge from "plain" `start_lifetime`.
https://github.com/llvm/llvm-project/pull/82776
    
    
More information about the cfe-commits
mailing list