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)
commit2c775709f6c23c691969cc900535b4ce339668c5
tree86ba35c9d9e4722b60dce903f6b85e2e04fdf311
parent944a051ebbdd11117e6afaed86f01165f56f3ba9
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.

llvm-svn: 374717
clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp