Skip to content

Commit fdd5843

Browse files
committed
[LoopFlatten] Replace unchecked dyn_cast with cast.
Spotted while reading through the code. Reviewed By: SjoerdMeijer Differential Revision: https://reviews.llvm.org/D127146
1 parent 0c66deb commit fdd5843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/LoopFlatten.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ static bool findLoopComponents(
411411
// pre-header and one from the latch. The incoming latch value is the
412412
// increment variable.
413413
Increment =
414-
dyn_cast<BinaryOperator>(InductionPHI->getIncomingValueForBlock(Latch));
414+
cast<BinaryOperator>(InductionPHI->getIncomingValueForBlock(Latch));
415415
if (Increment->hasNUsesOrMore(3)) {
416416
LLVM_DEBUG(dbgs() << "Could not find valid increment\n");
417417
return false;

0 commit comments

Comments
 (0)