Skip to content

Commit 239728a

Browse files
committed
Address review comment.
1 parent 354b334 commit 239728a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/CheckExprLifetime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ shouldTrackFirstArgumentForConstructor(const CXXConstructExpr *Ctor) {
404404
if (LHSRecordDecl->hasAttr<PointerAttr>())
405405
return true;
406406

407-
if (Ctor->getConstructor()->getNumParams() < 1 ||
407+
if (Ctor->getConstructor()->param_empty() ||
408408
!isContainerOfPointer(LHSRecordDecl))
409409
return false;
410410

0 commit comments

Comments
 (0)