From ef89409a59f3b79ae143b33b7d8e6ee6285aa42f Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 27 Sep 2022 15:15:43 +0100 Subject: [PATCH] Fix 'unused-lambda-capture' gcc warning. NFCI. --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index b5c7381..9584c42 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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 CheckedExtracts; -- 2.7.4