Change linkInModule to take a std::unique_ptr.
[oota-llvm.git] / tools / bugpoint / BugDriver.cpp
index 39887d5d59dc7627f85cfcb0a707791e1bf12574..030749fa9ea08f163b7fa7ea831e9630e6498d9a 100644 (file)
@@ -132,7 +132,7 @@ bool BugDriver::addSources(const std::vector<std::string> &Filenames) {
     if (!M.get()) return true;
 
     outs() << "Linking in input file: '" << Filenames[i] << "'\n";
-    if (Linker::linkModules(*Program, *M))
+    if (Linker::linkModules(*Program, std::move(M)))
       return true;
   }