Skip to content

Commit d294768

Browse files
committed
Rebase and update auto*
1 parent 008ad1c commit d294768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,9 +1742,9 @@ static Value *generateNewInstTree(ArrayRef<InstLane> Item, FixedVectorType *Ty,
17421742
if (auto *BI = dyn_cast<BinaryOperator>(I))
17431743
return Builder.CreateBinOp((Instruction::BinaryOps)BI->getOpcode(), Ops[0],
17441744
Ops[1]);
1745-
if (auto CI = dyn_cast<CmpInst>(I))
1745+
if (auto *CI = dyn_cast<CmpInst>(I))
17461746
return Builder.CreateCmp(CI->getPredicate(), Ops[0], Ops[1]);
1747-
if (auto SI = dyn_cast<SelectInst>(I))
1747+
if (auto *SI = dyn_cast<SelectInst>(I))
17481748
return Builder.CreateSelect(Ops[0], Ops[1], Ops[2], "", SI);
17491749
if (II)
17501750
return Builder.CreateIntrinsic(DstTy, II->getIntrinsicID(), Ops);

0 commit comments

Comments
 (0)