]> granicus.if.org Git - clang/commit
RewriteModernObjC - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 7 Oct 2019 13:58:15 +0000 (13:58 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 7 Oct 2019 13:58:15 +0000 (13:58 +0000)
commit7bd35772a0e85ce1e365b3c5f957faa0cc144149
treeb882c04a35abdffb5299db7a2f959baf29906289
parentd55e66916d72467ee6c1a2e169a4fbe0296b5400
RewriteModernObjC - 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@373905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/Rewrite/RewriteModernObjC.cpp