[all-commits] [llvm/llvm-project] 7bfc3b: Replace getAs/dyn_cast with castAs/cast to fix nul...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Mar 12 09:55:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bfc3bf39b6d279657b480963e72b6c08191b2f2
      https://github.com/llvm/llvm-project/commit/7bfc3bf39b6d279657b480963e72b6c08191b2f2
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

  Changed paths:
    M clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp

  Log Message:
  -----------
  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.




More information about the All-commits mailing list