[clang] [Clang] Diagnose dangling references in std::vector. (PR #111753)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 14 11:47:56 PDT 2024
================
@@ -404,7 +404,7 @@ shouldTrackFirstArgumentForConstructor(const CXXConstructExpr *Ctor) {
if (LHSRecordDecl->hasAttr<PointerAttr>())
return true;
- if (Ctor->getConstructor()->getNumParams() != 1 ||
+ if (Ctor->getConstructor()->getNumParams() < 1 ||
----------------
hokein wrote:
Done.
https://github.com/llvm/llvm-project/pull/111753
More information about the cfe-commits
mailing list