]> granicus.if.org Git - clang/commit
SemaOverload - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 14:02:27 +0000 (14:02 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 14:02:27 +0000 (14:02 +0000)
commite1b70ba580df4456bd12f526172a2056facf8da4
tree7425795ed82e95fc4fa6ad6bb926d77e5f027e7c
parent9a999aecabbfba8c77c054132c559ab8b7d5eefd
SemaOverload - 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@373475 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp