]> granicus.if.org Git - llvm/commit
MemorySSAUpdater::applyInsertUpdates - silence static analyzer dyn_cast<MemoryAccess...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 13:09:12 +0000 (13:09 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 13:09:12 +0000 (13:09 +0000)
commitc8071a0f0ffc0a7df02119c062b345eaaa3e3348
tree43d74c3b597671f9c8c7bc0cec5820ad41782d88
parent180ce8cfdab359da2c0fac3d12672e3b06517554
MemorySSAUpdater::applyInsertUpdates - silence static analyzer dyn_cast<MemoryAccess> null dereference warning. NFCI.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373467 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemorySSAUpdater.cpp