IndVarSimplify - silence static analyzer dyn_cast<> null dereference warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Oct 2019 17:15:05 +0000 (17:15 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Oct 2019 17:15:05 +0000 (17:15 +0000)
commit0c5df8dbe561949050a7796aa6a83de164f95fed
treeda6f11fc7ce23de3d03f6fa7d1749210706568db
parent814548ec8e1bf85748bc2aa3be173f20267deca4
IndVarSimplify - silence static analyzer dyn_cast<> null dereference warning. NFCI.

The static analyzer is warning about a potential null dereference, but we should be able to use cast<> directly and if not assert will fire for us.

llvm-svn: 375426
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp