]> granicus.if.org Git - llvm/commit
CodeGenPrepare - silence static analyzer dyn_cast<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 8 Oct 2019 17:00:01 +0000 (17:00 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 8 Oct 2019 17:00:01 +0000 (17:00 +0000)
commitd88182269a0803a01a70638cb84d7055e5b4bd07
treef6d1a956f0359761d89efc7cac4f4faa5cd4d312
parentf9ec9d5c732b302bafde39efb34baa7ca7a49784
CodeGenPrepare - silence static analyzer dyn_cast<> null dereference warnings. NFCI.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374085 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp