diff options
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
| -rw-r--r-- | llvm/tools/bugpoint/ExtractFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index a9023573f9d..d010855accb 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/tools/bugpoint/ExtractFunction.cpp @@ -85,7 +85,7 @@ std::unique_ptr<Module> BugDriver::deleteInstructionFromProgram(const Instruction *I, unsigned Simplification) { // FIXME, use vmap? - std::unique_ptr<Module> Clone = CloneModule(Program); + std::unique_ptr<Module> Clone = CloneModule(*Program); const BasicBlock *PBB = I->getParent(); const Function *PF = PBB->getParent(); @@ -318,7 +318,7 @@ llvm::SplitFunctionsOutOfModule(Module *M, const std::vector<Function *> &F, } ValueToValueMapTy NewVMap; - std::unique_ptr<Module> New = CloneModule(M, NewVMap); + std::unique_ptr<Module> New = CloneModule(*M, NewVMap); // Remove the Test functions from the Safe module std::set<Function *> TestFunctions; |

