[PATCH] D86657: Add new hidden option -print-crash-IR that prints out IR that caused opt pipeline to crash
Yevgeny Rouban via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 21:34:59 PDT 2020
yrouban added inline comments.
================
Comment at: llvm/lib/Passes/StandardInstrumentations.cpp:204
+void crashedIRReporter(void *P) {
PrintCrashIRInstrumentation *PCII = (PrintCrashIRInstrumentation *)P;
dbgs() << PCII->getSavedIR();
----------------
static_cast<PrintCrashIRInstrumentation *>(P)
================
Comment at: llvm/lib/Passes/StandardInstrumentations.cpp:362
- sys::AddSignalHandler(CrashedIRReporter, this);
+ sys::AddSignalHandler(crashedIRReporter, this);
----------------
do we need to remove this signal handler when //this// is destructed?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86657/new/
https://reviews.llvm.org/D86657
More information about the llvm-commits
mailing list