[clang] [Clang] Implement P2718R0 "Lifetime extension in range-based for loops" (PR #76361)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 11 07:31:08 PST 2024
================
@@ -6305,6 +6315,10 @@ ExprResult Sema::BuildCXXDefaultArgExpr(SourceLocation CallLoc,
if (Res.isInvalid())
return ExprError();
Init = Res.get();
+
+ // Collect MaterializeTemporaryExprs in the rewrited CXXDefaultArgExpr.
----------------
yronglin wrote:
fixed
https://github.com/llvm/llvm-project/pull/76361
More information about the cfe-commits
mailing list