[LoopFlatten] Replace unchecked dyn_cast with cast.
authorCraig Topper <craig.topper@sifive.com>
Tue, 7 Jun 2022 15:20:59 +0000 (08:20 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 7 Jun 2022 15:21:00 +0000 (08:21 -0700)
commitfdd5843572c02bea2ac4d537a09b32e633994a8a
tree873c7836074276e32da955a408c9530a1acc393f
parent0c66deb498e6c2389988500b5037d91b81f79ed9
[LoopFlatten] Replace unchecked dyn_cast with cast.

Spotted while reading through the code.

Reviewed By: SjoerdMeijer

Differential Revision: https://reviews.llvm.org/D127146
llvm/lib/Transforms/Scalar/LoopFlatten.cpp