[llvm] ef89409 - Fix 'unused-lambda-capture' gcc warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 27 07:16:22 PDT 2022
Author: Simon Pilgrim
Date: 2022-09-27T15:15:43+01:00
New Revision: ef89409a59f3b79ae143b33b7d8e6ee6285aa42f
URL: https://github.com/llvm/llvm-project/commit/ef89409a59f3b79ae143b33b7d8e6ee6285aa42f
DIFF: https://github.com/llvm/llvm-project/commit/ef89409a59f3b79ae143b33b7d8e6ee6285aa42f.diff
LOG: Fix 'unused-lambda-capture' gcc warning. NFCI.
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index b5c73819335e..9584c421bcca 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<Value *, 4> CheckedExtracts;
More information about the llvm-commits
mailing list