The BlockExtractorPass() constructor was not reading the BlockFile and that was
[oota-llvm.git] / tools / bugpoint / ExtractFunction.cpp
index e0f9db6d438bdb3c10f940e652c91cf65eceeb9d..6913fd06a938ee2122734d5d96c0a6e0d22fa81a 100644 (file)
@@ -354,8 +354,7 @@ Module *BugDriver::ExtractMappedBlocksFromModule(const
   const char *ExtraArg = uniqueFN.c_str();
 
   std::vector<const PassInfo*> PI;
-  std::vector<BasicBlock *> EmptyBBs; // This parameter is ignored.
-  PI.push_back(getPI(createBlockExtractorPass(EmptyBBs)));
+  PI.push_back(getPI(createBlockExtractorPass()));
   Module *Ret = runPassesOn(M, PI, false, 1, &ExtraArg);
 
   uniqueFilename.eraseFromDisk(); // Free disk space