]> granicus.if.org Git - clang/commit
SemaTemplate - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 5 Oct 2019 13:21:08 +0000 (13:21 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 5 Oct 2019 13:21:08 +0000 (13:21 +0000)
commitf627e4f7865df5a31a56ad807ceb385b53c1e572
tree61e4e0889f852f6c6ffcee46bb99612939e5dbf4
parent2fc657a8c2a3aab02b6b353c7e0fc90ebc9e6f40
SemaTemplate - 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@373827 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp