]> granicus.if.org Git - clang/commit
Sema - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 7 Oct 2019 14:25:46 +0000 (14:25 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 7 Oct 2019 14:25:46 +0000 (14:25 +0000)
commitd779f019c1215809fd65103f77f20026202bf35e
treeaa7e3fc09900eb2216976bfe52e9cb5cdf8a7c9b
parent4000ede51f313536d1970321427e2282b7d33f5f
Sema - 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@373911 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaAccess.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaCoroutine.cpp
lib/Sema/SemaDecl.cpp