Skip to content

Commit fed4727

Browse files
authored
Mark maybe_unused variable (#133069)
... to avoid -Wunused-variable warnings/errors when assertions are off.
1 parent e5129b7 commit fed4727

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
@@ -619,7 +619,7 @@ Value *VPInstruction::generate(VPTransformState &State) {
619619
auto *PhiR = cast<VPReductionPHIRecipe>(getOperand(0));
620620
// Get its reduction variable descriptor.
621621
const RecurrenceDescriptor &RdxDesc = PhiR->getRecurrenceDescriptor();
622-
RecurKind RK = RdxDesc.getRecurrenceKind();
622+
[[maybe_unused]] RecurKind RK = RdxDesc.getRecurrenceKind();
623623
assert(RecurrenceDescriptor::isFindLastIVRecurrenceKind(RK) &&
624624
"Unexpected reduction kind");
625625
assert(!PhiR->isInLoop() &&

0 commit comments

Comments
 (0)