================
@@ -8194,25 +8216,18 @@ void Sema::checkInitializerLifetime(const 
InitializedEntity &Entity,
       }
 
       switch (shouldLifetimeExtendThroughPath(Path)) {
+      case PathLifetimeKind::ShouldExtend:
----------------
yronglin wrote:

Yeah, `ShouldExtend ` can be removed, and it's only used for 
`CXXDefaultInitExpr` now.

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

Reply via email to