[all-commits] [llvm/llvm-project] 6beb2d: [Support] Factor out isCrash from throwIfCrash

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Tue Apr 26 17:53:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6beb2db7d168a952b4b97ca8b1e7f1b8f63460cb
      https://github.com/llvm/llvm-project/commit/6beb2db7d168a952b4b97ca8b1e7f1b8f63460cb
  Author: Alexander Shaposhnikov <ashaposhnikov at google.com>
  Date:   2022-04-27 (Wed, 27 Apr 2022)

  Changed paths:
    M llvm/include/llvm/Support/CrashRecoveryContext.h
    M llvm/lib/Support/CrashRecoveryContext.cpp

  Log Message:
  -----------
  [Support] Factor out isCrash from throwIfCrash

This diff factors out the check "isCrash" from the static method "throwIfCrash".
This is a helper function that can be useful in debugging / analysis, in particular,
I'm planning to use it in the future patches for lld-fuzzer.

Test plan:
1/ ninja check-all
2/ export LLD_IN_TEST=5 ninja check-lld

Differential revision: https://reviews.llvm.org/D124414




More information about the All-commits mailing list