[PATCH] D86657: Add new hidden option -print-on-crash that prints out IR that caused opt pipeline to crash

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 7 12:28:56 PDT 2021


MaskRay added inline comments.


================
Comment at: llvm/lib/Passes/PassBuilder.cpp:364
+public:
+  PreservedAnalyses run(Module &, ModuleAnalysisManager &) { assert(false); }
+};
----------------
`error: non-void function does not return a value [-Werror,-Wreturn-type]`

use llvm_unreachable


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86657/new/

https://reviews.llvm.org/D86657



More information about the llvm-commits mailing list