diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-16 23:16:37 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-16 23:16:37 +0000 |
commit | 433049f87b711db1adedac3fc35f6f894ede79ed (patch) | |
tree | 1ae8e2babc99490762fee4d8d2afff1b00b265a6 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 434e95618176ee4eb29237859eb6fa04e3c52e06 (diff) | |
download | llvm-433049f87b711db1adedac3fc35f6f894ede79ed.zip llvm-433049f87b711db1adedac3fc35f6f894ede79ed.tar.gz llvm-433049f87b711db1adedac3fc35f6f894ede79ed.tar.bz2 |
Update for llvm api change.
llvm-svn: 255843
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 771fe00..abef543 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/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<llvm::Module> RenamedModule = - renameModuleForThinLTO(TheModule, Index.get()); + renameModuleForThinLTO(std::move(TheModule), Index.get()); if (!RenamedModule) return; |