Author: rafael Date: Wed Dec 16 17:16:37 2015 New Revision: 255843 URL: http://llvm.org/viewvc/llvm-project?rev=255843&view=rev Log: Update for llvm api change.
Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=255843&r1=255842&r2=255843&view=diff ============================================================================== --- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original) +++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Wed Dec 16 17:16:37 2015 @@ -184,7 +184,7 @@ namespace clang { for (auto &I : LinkModules) { unsigned LinkFlags = I.first; CurLinkModule = I.second.get(); - if (Linker::linkModules(*M, *CurLinkModule, LinkFlags)) + if (Linker::linkModules(*M, std::move(I.second), LinkFlags)) return; } @@ -806,7 +806,7 @@ void CodeGenAction::ExecuteAction() { assert(Index); // Currently this requires creating a new Module object. std::unique_ptr<llvm::Module> RenamedModule = - renameModuleForThinLTO(TheModule, Index.get()); + renameModuleForThinLTO(std::move(TheModule), Index.get()); if (!RenamedModule) return; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits