================ @@ -1609,6 +1609,12 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context, static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context, CXXMethodDecl *Method1, CXXMethodDecl *Method2) { + if (!Method1 && !Method2) { + return true; + } + if (!Method1 || !Method2) { + return false; + } ---------------- balazske wrote:
```suggestion if (!Method1 && !Method2) return true; if (!Method1 || !Method2) return false; ``` https://github.com/llvm/llvm-project/pull/138838 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits