]> granicus.if.org Git - clang/commit
RewriteObjC - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 5 Oct 2019 13:42:14 +0000 (13:42 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 5 Oct 2019 13:42:14 +0000 (13:42 +0000)
commitd5265df34d143d236b8ef263a25c0f28b339ffff
tree2c0d346c1e4aa7942c280886675d40dec601290c
parent2b7e3dd2fddbff36efd67e6332debbca0b6c2f81
RewriteObjC - silence static analyzer getAs<> null dereference warnings. NFCI.

The static analyzer is warning about potential null dereferences, but 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@373829 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/Rewrite/RewriteObjC.cpp