]> granicus.if.org Git - clang/commit
CGObjCMac - silence static analyzer dyn_cast<>/getAs<> null dereference warnings...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 20:30:37 +0000 (20:30 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 20:30:37 +0000 (20:30 +0000)
commit418e4ac57a27cd1c62493255209d61db62a6d614
tree1ebb2b08d33c81398fe57e6a63587f7e67f199b2
parentf44a44d2c094fea906a76aded17f8703570882f9
CGObjCMac - silence static analyzer dyn_cast<>/getAs<> null dereference warnings. NFCI.

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

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