diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/tools/bugpoint/Miscompilation.cpp @@ -705,8 +705,8 @@ if (!Optimized) { errs() << " Error running this sequence of passes" << " on the input program!\n"; - BD.setNewProgram(std::move(Test)); BD.EmitProgressBitcode(*Test, "pass-error", false); + BD.setNewProgram(std::move(Test)); if (Error E = BD.debugOptimizerCrash()) return std::move(E); return false;