diff --git a/tools/bugpoint/OptimizerDriver.cpp b/tools/bugpoint/OptimizerDriver.cpp index 14ca7c832c3..ad69caaec6e 100644 --- a/tools/bugpoint/OptimizerDriver.cpp +++ b/tools/bugpoint/OptimizerDriver.cpp @@ -179,6 +179,7 @@ Module *BugDriver::runPassesOn(Module *M, EmitProgressBytecode("pass-error", false); exit(debugOptimizerCrash()); } + swapProgramIn(OldProgram); return 0; }