[SLPVectorizer] Fix -Wunused-lambda-capture in -DLLVM_ENABLE_ASSERTIONS=off build

This commit is contained in:
Fangrui Song 2022-08-30 23:01:22 -07:00
parent bc10ab8da1
commit 13f0795425
1 changed files with 1 additions and 0 deletions

View File

@ -5823,6 +5823,7 @@ TTI::OperandValueInfo BoUpSLP::getOperandInfo(ArrayRef<Value *> VL,
const auto *Inst = cast<Instruction>(V);
assert(Inst->getOpcode() == I0->getOpcode() &&
"Expected same opcode");
(void)I0;
return !isConstant(Inst->getOperand(OpIdx));
}))
return {TTI::OK_AnyValue, TTI::OP_None};