Skip to content

Commit e6061f2

Browse files
committed
auto -> std::optional<unsigned>
1 parent c38fcab commit e6061f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9156,7 +9156,7 @@ VPRecipeBase *VPRecipeBuilder::tryToCreateWidenRecipe(
91569156
if (isa<LoadInst>(Instr) || isa<StoreInst>(Instr))
91579157
return tryToWidenMemory(Instr, Operands, Range);
91589158

9159-
if (auto ScaleFactor = getScalingForReduction(Instr))
9159+
if (std::optional<unsigned> ScaleFactor = getScalingForReduction(Instr))
91609160
return tryToCreatePartialReduction(Instr, Operands, ScaleFactor.value());
91619161

91629162
if (!shouldWiden(Instr, Range))

0 commit comments

Comments
 (0)