Author: Kirstóf Umann
Date: 2021-11-15T15:45:43+01:00
New Revision: d896c9f40a22690d80cdf88152adbe591fd83d90

URL: 
https://github.com/llvm/llvm-project/commit/d896c9f40a22690d80cdf88152adbe591fd83d90
DIFF: 
https://github.com/llvm/llvm-project/commit/d896c9f40a22690d80cdf88152adbe591fd83d90.diff

LOG: Fix an unused variable warning

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp 
b/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
index 35fe51f11cd8..d29e631641dc 100644
--- a/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
@@ -184,7 +184,7 @@ const Expr *digThroughConstructorsConversions(const Expr 
*E) {
   // If this is a conversion (as iterators commonly convert into their const
   // iterator counterparts), dig through that as well.
   if (const auto *ME = dyn_cast<CXXMemberCallExpr>(E))
-    if (const auto *D = dyn_cast<CXXConversionDecl>(ME->getMethodDecl()))
+    if (isa<CXXConversionDecl>(ME->getMethodDecl()))
       return 
digThroughConstructorsConversions(ME->getImplicitObjectArgument());
   return E;
 }


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to