================ @@ -1536,10 +1536,19 @@ static bool IsOverloadOrOverrideImpl(Sema &SemaRef, FunctionDecl *New, !F->isExplicitObjectMemberFunction(); }; - if (IsImplicitWithNoRefQual(Old) != IsImplicitWithNoRefQual(New) && - CompareType(OldObjectType.getNonReferenceType(), - NewObjectType.getNonReferenceType())) - return true; + if ((Old->getRefQualifier() != RQ_None || ---------------- erichkeane wrote:
Perhaps too early in the morning, but this whole predicate (and the one below it) are both... rough :) Is there a good way to make them more readable by extracting named variables or something? https://github.com/llvm/llvm-project/pull/147498 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits