Fix "pointer is null" static analyzer warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 14 Jan 2020 13:48:02 +0000 (13:48 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 14 Jan 2020 14:00:38 +0000 (14:00 +0000)
commit591cd40584300a1d5d33bfaefa4698c02ef56887
tree52a7cf2662558b0a9864aa7c972fd27da32d3ae7
parent9d905e8ceddda8b103e208ed43a117cb4445e682
Fix "pointer is null" static analyzer warnings. NFCI.

Use cast<> instead of cast_or_null<> since the pointers are always dereferenced and cast<> will perform the null assertion for us.
clang/lib/Sema/SemaTemplate.cpp