================
@@ -404,7 +404,7 @@ shouldTrackFirstArgumentForConstructor(const 
CXXConstructExpr *Ctor) {
   if (LHSRecordDecl->hasAttr<PointerAttr>())
     return true;
 
-  if (Ctor->getConstructor()->getNumParams() != 1 ||
+  if (Ctor->getConstructor()->getNumParams() < 1 ||
----------------
usx95 wrote:

Looks like we are checking for empty params. Let's replace this with 
`Ctor->getConstructor()-> param_empty()`.

https://github.com/llvm/llvm-project/pull/111753
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to