Fix 'unused-lambda-capture' gcc warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 27 Sep 2022 14:15:43 +0000 (15:15 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 27 Sep 2022 14:15:43 +0000 (15:15 +0100)
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

index b5c7381..9584c42 100644 (file)
@@ -6075,7 +6075,7 @@ InstructionCost BoUpSLP::getEntryCost(const TreeEntry *E,
   bool NeedToShuffleReuses = !E->ReuseShuffleIndices.empty();
   // FIXME: it tries to fix a problem with MSVC buildbots.
   TargetTransformInfo &TTIRef = *TTI;
-  auto &&AdjustExtractsCost = [this, &TTIRef, CostKind, VL, VecTy,
+  auto &&AdjustExtractsCost = [this, &TTIRef, CostKind, VL,
                                VectorizedVals, E](InstructionCost &Cost) {
     ScalarizationOverheadBuilder ScalarizationCost;
     SmallPtrSet<Value *, 4> CheckedExtracts;