[clang] [llvm] Ast importer visitors (PR #138838)
Balázs Kéri via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 01:27:00 PDT 2025
================
@@ -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
More information about the llvm-commits
mailing list