[InstCombine] Fix unused variable warning; NFC

This commit is contained in:
Nikita Popov 2020-02-03 18:41:31 +01:00
parent 6c3252e521
commit a59954051e
1 changed files with 1 additions and 1 deletions

View File

@ -1687,7 +1687,7 @@ Instruction *InstCombiner::foldVectorBinop(BinaryOperator &Inst) {
// Try to reassociate to sink a splat shuffle after a binary operation.
if (Inst.isAssociative() && Inst.isCommutative()) {
// Canonicalize shuffle operand as LHS.
if (auto *ShufR = dyn_cast<ShuffleVectorInst>(RHS))
if (isa<ShuffleVectorInst>(RHS))
std::swap(LHS, RHS);
Value *X;