Replace getAs with castAs to fix null dereference static analyzer warnings.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 12 Mar 2020 14:56:32 +0000 (14:56 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 12 Mar 2020 14:56:51 +0000 (14:56 +0000)
commit7c2b3c9dda37ab25a6849a3670f1bfda6aa17e5e
tree06e37f84870b4da2dcb67b330c3238fb4c4362bd
parentdbde39e485b5c00b9ad809d169e1650aa2104114
Replace getAs with castAs to fix null dereference static analyzer warnings.

Use castAs as we know the cast should succeed (and castAs will assert if it doesn't) and we're dereferencing it directly in the getThisType/getThisObjectType calls.
clang/lib/AST/DeclCXX.cpp