SeparateConstOffsetFromGEP::lowerToSingleIndexGEPs - don't use dyn_cast_or_null....
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 15 Dec 2020 17:15:06 +0000 (17:15 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 15 Dec 2020 17:27:25 +0000 (17:27 +0000)
commita3bd67f222ca56d86f4d1da613fca9d0bef34d9b
treee21cde8911edffbcc9f54afcf24d8fe3aa0eb916
parentaa7ae25613da0322c77a2a19cadd950f21e74ee2
SeparateConstOffsetFromGEP::lowerToSingleIndexGEPs - don't use dyn_cast_or_null. NFCI.

ResultPtr is guaranteed to be non-null - and using dyn_cast_or_null causes unnecessary static analyzer warnings.

We can't say the same for FirstResult AFAICT, so keep dyn_cast_or_null for that.
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp