Replace getAs/dyn_cast with castAs/cast to fix null dereference static analyzer warnings.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 12 Mar 2020 16:49:35 +0000 (16:49 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 12 Mar 2020 16:50:50 +0000 (16:50 +0000)
commit7bfc3bf39b6d279657b480963e72b6c08191b2f2
tree40ff852533b7fe5f19b8ebae2567615945b2e791
parentb93dd6779775d38db11e633cce2fc1be5ff7789a
Replace getAs/dyn_cast with castAs/cast to fix null dereference static analyzer warnings.

Both these casts are immediately deferenced and the cast will assert for us that they are of the correct type.
clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp