MemorySanitizer - silence static analyzer dyn_cast<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 10:56:14 +0000 (10:56 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 10:56:14 +0000 (10:56 +0000)
commit6b794dfd3d9fc836bddba939d6631aa7b2607caa
tree828b78ba8f402279a460aea5396533d54bb82da3
parentfaa5b39e4e06f5645638471a1f86091806916fc8
MemorySanitizer - silence static analyzer dyn_cast<> null dereference warnings. NFCI.

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

llvm-svn: 372960
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp