[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 09:00:01 PDT 2024
================
@@ -6298,6 +6298,15 @@ class Sema final : public SemaBase {
using ImmediateInvocationCandidate = llvm::PointerIntPair<ConstantExpr *, 1>;
+ enum class LifetimeExtendingContext {
+ None, // Not in a lifetime extending context.
+ FlagOnly, // A flag indicating whether we are in lifetime extending
----------------
yronglin wrote:
Yeah, that's seems confused. I've add a new `RebuildDefaultArgOrDefaultInit`, WDYT?
https://github.com/llvm/llvm-project/pull/97308
More information about the cfe-commits
mailing list