Sometimes we get bug reports from the Verifier triggering, but need to rest of the module context to see what might have happened (for example https://github.com/JuliaLang/julia/issues/31156). This tries to automatically dump it to a file before killing the process, so that the information is preserved if you want it.
Tested with this:
$ cat broken.ll define void @"broken\\bad/filename"(i64) { top: br label %top } $ opt -disable-verify -verify broken.ll Entry block to function must not have predecessors! label %top in function broken\bad/filename LLVM ERROR: Broken function found, compilation aborted! Broken bitcode dumped to "llvm-broken_bad_filename-2f459a.ll"