Replace getAs with castAs to fix null dereference static analyzer warnings.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 12 Mar 2020 14:28:16 +0000 (14:28 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 12 Mar 2020 14:56:50 +0000 (14:56 +0000)
commit5f9fcfb29e4e30932909ce648ad556a3890e6dce
treea31cf55f6a0b25fa73b794d244248c6801042d70
parent3e53bf5781e01784dedb7885867f39d09201ec88
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 canAssignObjCInterfaces call.
clang/lib/AST/ASTContext.cpp