RewriteModernObjC - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 10:50:06 +0000 (10:50 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 10:50:06 +0000 (10:50 +0000)
commitd57d5c1b579d21196a502b86a40f0ace42545d29
tree2875d7e4e5ab6999f7351d985e63f429a5c8f33f
parent867c8db5cc6bf062c1324213656ddf1d7ddb5ad9
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@374991 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/Rewrite/RewriteModernObjC.cpp