diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/lib/Sema/SemaOverload.cpp @@ -931,7 +931,7 @@ // target. DeclarationName NotEqOp = S.Context.DeclarationNames.getCXXOperatorName( OverloadedOperatorKind::OO_ExclaimEqual); - if (auto *MD = dyn_cast(EqFD)) { + if (isa(EqFD)) { // If F is a class member, search scope is class type of first operand. QualType RHS = FirstOperand->getType(); auto *RHSRec = RHS->getAs();