================ @@ -249,7 +254,7 @@ static void visitLocalsRetainedByReferenceBinding(IndirectLocalPath &Path, LocalVisitor Visit); template <typename T> static bool isRecordWithAttr(QualType Type) { - if (auto *RD = Type->getAsCXXRecordDecl()) + if (auto *RD = Type.getNonReferenceType()->getAsCXXRecordDecl()) ---------------- usx95 wrote:
I will remove this for now from this PR and leave the tests with a FIXME. Probably needs a separate PR to keep this PR simpler. It is not possible to do before this PR because I do not have non-lifetime_capture_by tests for it. https://github.com/llvm/llvm-project/pull/115921 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits