Author: Erich Keane Date: 2022-10-10T11:42:43-07:00 New Revision: 6c49d5db30227d21e929bb12dc046c36ede67fad
URL: https://github.com/llvm/llvm-project/commit/6c49d5db30227d21e929bb12dc046c36ede67fad DIFF: https://github.com/llvm/llvm-project/commit/6c49d5db30227d21e929bb12dc046c36ede67fad.diff LOG: Fix unused variable warning from D134529 Added: Modified: clang/lib/Sema/SemaOverload.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index b3f98a0fe843e..c7e66d1e1d2ab 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/lib/Sema/SemaOverload.cpp @@ -931,7 +931,7 @@ static bool shouldAddReversedEqEq(Sema &S, SourceLocation OpLoc, // target. DeclarationName NotEqOp = S.Context.DeclarationNames.getCXXOperatorName( OverloadedOperatorKind::OO_ExclaimEqual); - if (auto *MD = dyn_cast<CXXMethodDecl>(EqFD)) { + if (isa<CXXMethodDecl>(EqFD)) { // If F is a class member, search scope is class type of first operand. QualType RHS = FirstOperand->getType(); auto *RHSRec = RHS->getAs<RecordType>(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits