[all-commits] [llvm/llvm-project] 46f0e2: [bugpoint] ReduceCrashingFunctions::TestFuncs - fi...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Apr 7 04:14:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46f0e2ceb4875f69ec76af6bc2e02aa359cccb64
      https://github.com/llvm/llvm-project/commit/46f0e2ceb4875f69ec76af6bc2e02aa359cccb64
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-04-07 (Thu, 07 Apr 2022)

  Changed paths:
    M llvm/tools/bugpoint/CrashDebugger.cpp

  Log Message:
  -----------
  [bugpoint] ReduceCrashingFunctions::TestFuncs - fix dereference of null point static analyzer warning

Alias.getAliaseeObject() shouldn't be null, do use dyn_cast instead of dyn_cast_or_null

Also, remove redundant `else if (!F)` test - that is always true at the point in the if-else chain




More information about the All-commits mailing list