================
@@ -1048,11 +1046,13 @@ void FactsGenerator::handleLifetimeCaptureBy(const
FunctionDecl *FD,
CapturingArgIdx == LifetimeCaptureByAttr::Unknown ||
CapturingArgIdx == LifetimeCaptureByAttr::Invalid)
continue;
- ArrayRef<const Expr *> CallArgs = IsInstance ? Args.drop_front() : Args;
+ if (CapturingArgIdx == LifetimeCaptureByAttr::This &&
+ isa<CXXConstructorDecl>(FD))
+ continue;
----------------
NeKon69 wrote:
I don't think we will need this if we keep the check above.
https://github.com/llvm/llvm-project/pull/212264
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits