Skip to content

Commit 715a55f

Browse files
committed
Remove lammbda static
1 parent 69053f5 commit 715a55f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,7 @@ InstructionCost VPWidenCastRecipe::computeCost(ElementCount VF,
22432243
TTI::CastContextHint CCH = TTI::CastContextHint::None;
22442244
// For Trunc/FPTrunc, get the context from the only user.
22452245
if (Opcode == Instruction::Trunc || Opcode == Instruction::FPTrunc) {
2246-
static auto GetOnlyUser = [](const VPSingleDefRecipe *R) -> VPRecipeBase * {
2246+
auto GetOnlyUser = [](const VPSingleDefRecipe *R) -> VPRecipeBase * {
22472247
if (R->hasMoreThanOneUniqueUser() || R->getNumUsers() == 0)
22482248
return nullptr;
22492249
return dyn_cast<VPRecipeBase>(*R->user_begin());

0 commit comments

Comments
 (0)