[LoopVectorize] Don't dereference a dyn_cast result. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Sep 2019 13:24:54 +0000 (13:24 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Sep 2019 13:24:54 +0000 (13:24 +0000)
commita2719f38c12d7208d2f931899e628d15562ee581
tree408278d785b9d2b0be5aaa30b20035de5a55196a
parent1ff955305768b772be19ce8ee76246ab249bbe1c
[LoopVectorize] Don't dereference a dyn_cast result. NFCI.

The static analyzer is warning about potential null dereferences of dyn_cast<> results, we can use cast<> directly as we know that these cases should all be CastInst, which is why its working atm and anyway cast<> will assert if they aren't.

llvm-svn: 372116
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp