]> granicus.if.org Git - clang/commit
CGDebugInfo - silence static analyzer dyn_cast<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 10:38:49 +0000 (10:38 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 10:38:49 +0000 (10:38 +0000)
commit867c8db5cc6bf062c1324213656ddf1d7ddb5ad9
tree6502ccf25017d09f1c8ed425339ee03f1bb5632c
parente606cc177eb257f38d77f8694f3d0db0a62fa942
CGDebugInfo - 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/cfe/trunk@374989 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp