]> granicus.if.org Git - clang/commit
CGBlocks - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Oct 2019 15:01:54 +0000 (15:01 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Oct 2019 15:01:54 +0000 (15:01 +0000)
commitcb0ef1406715e353e21c628337882d181c87ed9d
tree9feb37e2e6ef4a7112a1bd39cf39ba6e3a51ec9a
parenta30cb89ed61188fd0f66ddc1e11fe96c2d0ccf8f
CGBlocks - silence static analyzer getAs<> null dereference warnings. NFCI.

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

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