From 9c50f8737b1480f600862c2175c86e216b1cc2c8 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 16 Dec 2015 23:16:37 +0000 Subject: [PATCH] Update for llvm api change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255843 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenAction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 771fe00833..abef543251 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -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 RenamedModule = - renameModuleForThinLTO(TheModule, Index.get()); + renameModuleForThinLTO(std::move(TheModule), Index.get()); if (!RenamedModule) return; -- 2.40.0