Revert r168635 "Step towards implementation of pass manager with doInitialization...
[oota-llvm.git] / tools / bugpoint / CrashDebugger.cpp
index aed16f47e012b5853b83f5071e0899260115218c..8836eedb47684454684bea7122836a384137202a 100644 (file)
@@ -412,7 +412,9 @@ bool ReduceCrashingInstructions::TestInsts(std::vector<const Instruction*>
   // Verify that this is still valid.
   PassManager Passes;
   Passes.add(createVerifierPass());
+  Passes.doInitialization();
   Passes.run(*M);
+  Passes.doFinalization();
 
   // Try running on the hacked up program...
   if (TestFn(BD, M)) {