================ @@ -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:
This is something required by the new annotation. This avoids a false positive for: ```cpp vsv.push_back(getOptionalSV().value()); vsv.push_back(getOptionalMySV().value()); ``` 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