================
@@ -964,17 +966,34 @@ static bool 
pathOnlyInitializesGslPointer(IndirectLocalPath &Path) {
   return false;
 }
 
-void checkExprLifetime(Sema &SemaRef, const InitializedEntity &Entity,
+void checkExprLifetime(Sema &SemaRef, const CheckingEntity &CEntity,
----------------
Xazax-hun wrote:

This! This already looks much better! I think we can get rid of the pointer 
union as well by sort of "inlining" the two branches of the if statement in the 
implementation function into the corresponding overloads. But I am also OK with 
the current PR as is. 

https://github.com/llvm/llvm-project/pull/96475
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to