Skip to content

Commit 9b4df5c

Browse files
committed
use auto for cmp
1 parent 5316f36 commit 9b4df5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ static Value *matchCondition(BranchInst *BI, BasicBlock *LoopEntry,
15301530
if (!Cond)
15311531
return nullptr;
15321532

1533-
const ConstantInt *CmpZero = dyn_cast<ConstantInt>(Cond->getOperand(1));
1533+
auto *CmpZero = dyn_cast<ConstantInt>(Cond->getOperand(1));
15341534
if (!CmpZero || !CmpZero->isZero())
15351535
return nullptr;
15361536

0 commit comments

Comments
 (0)