mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 09:16:31 +00:00
Mark maybe_unused variable (#133069)
... to avoid -Wunused-variable warnings/errors when assertions are off.
This commit is contained in:
parent
e5129b7e20
commit
fed4727187
@ -619,7 +619,7 @@ Value *VPInstruction::generate(VPTransformState &State) {
|
||||
auto *PhiR = cast<VPReductionPHIRecipe>(getOperand(0));
|
||||
// Get its reduction variable descriptor.
|
||||
const RecurrenceDescriptor &RdxDesc = PhiR->getRecurrenceDescriptor();
|
||||
RecurKind RK = RdxDesc.getRecurrenceKind();
|
||||
[[maybe_unused]] RecurKind RK = RdxDesc.getRecurrenceKind();
|
||||
assert(RecurrenceDescriptor::isFindLastIVRecurrenceKind(RK) &&
|
||||
"Unexpected reduction kind");
|
||||
assert(!PhiR->isInLoop() &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user