liaolucy created this revision. liaolucy added a reviewer: usaxena95. Herald added a project: All. liaolucy requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Fix warning: unused variable ‘MD’ Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D135558 Files: clang/lib/Sema/SemaOverload.cpp Index: clang/lib/Sema/SemaOverload.cpp =================================================================== --- clang/lib/Sema/SemaOverload.cpp +++ clang/lib/Sema/SemaOverload.cpp @@ -931,7 +931,7 @@ // 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>();
Index: clang/lib/Sema/SemaOverload.cpp =================================================================== --- clang/lib/Sema/SemaOverload.cpp +++ clang/lib/Sema/SemaOverload.cpp @@ -931,7 +931,7 @@ // 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