Fix "pointer is null" clang static analyzer warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 14 Jan 2020 14:15:51 +0000 (14:15 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 14 Jan 2020 16:31:17 +0000 (16:31 +0000)
commitab9dbc1d124cdf288474073f5233e3fd6ee8e9c3
tree53a1203e3b3f7696a3d14e19e381bdd3dd84f088
parente2b8e2113a4929027a237b67f7be86db4ec103d3
Fix "pointer is null" clang static analyzer warnings. NFCI.

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