]> granicus.if.org Git - clang/commit
BlockInCriticalSectionChecker - silence static analyzer dyn_cast null dereference...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 13 Oct 2019 11:30:06 +0000 (11:30 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 13 Oct 2019 11:30:06 +0000 (11:30 +0000)
commit7eb6c1f566606079400847c0ba8c9a59d84268a5
treedd0e05b4e47d8fed0e348ec5054915f59d9a92a5
parentfbd92043c6e183b4744da026951297a2a578b98c
BlockInCriticalSectionChecker - silence static analyzer dyn_cast null dereference warning. NFCI.

The static analyzer is warning about a potential null dereference, but 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@374717 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp