[all-commits] [llvm/llvm-project] a8648f: Replace getAs with castAs to fix null dereference ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Mar 5 07:29:08 PST 2020


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

  Changed paths:
    M clang/lib/AST/ItaniumMangle.cpp

  Log Message:
  -----------
  Replace getAs with castAs to fix null dereference static analyzer warning.

Use castAs as we know the cast should succeed and we're dereferencing in the mangleBareFunctionType call.




More information about the All-commits mailing list