We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 354b334 commit 239728aCopy full SHA for 239728a
clang/lib/Sema/CheckExprLifetime.cpp
@@ -404,7 +404,7 @@ shouldTrackFirstArgumentForConstructor(const CXXConstructExpr *Ctor) {
404
if (LHSRecordDecl->hasAttr<PointerAttr>())
405
return true;
406
407
- if (Ctor->getConstructor()->getNumParams() < 1 ||
+ if (Ctor->getConstructor()->param_empty() ||
408
!isContainerOfPointer(LHSRecordDecl))
409
return false;
410
0 commit comments