Skip to content

Commit 0b4b0d9

Browse files
kazutakahiratavar-const
authored andcommitted
[Vectorize] Fix a warning
This patch fixes: llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:2417:13: error: unused variable 'ConstStep' [-Werror,-Wunused-variable]
1 parent 432f8eb commit 0b4b0d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2419,6 +2419,7 @@ void VPlanTransforms::convertToConcreteRecipes(VPlan &Plan,
24192419
? dyn_cast<ConstantInt>(ScalarStep->getLiveInIRValue())
24202420
: nullptr;
24212421
assert(!ConstStep || ConstStep->getValue() != 1);
2422+
(void)ConstStep;
24222423
if (TypeInfo.inferScalarType(ScalarStep) != IVTy) {
24232424
ScalarStep =
24242425
Builder.createWidenCast(Instruction::Trunc, ScalarStep, IVTy);

0 commit comments

Comments
 (0)