diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-29 05:08:19 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-29 05:08:19 +0000 |
commit | 780dd3b71af51a8a3d9aeed55cd7b7aaa88370f5 (patch) | |
tree | a069c17464c0425b0c0f26dc72565663fa4b5c64 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 08f4cda2ec0299019fa76f0d630b3d0c7152685f (diff) | |
download | bcm5719-llvm-780dd3b71af51a8a3d9aeed55cd7b7aaa88370f5.tar.gz bcm5719-llvm-780dd3b71af51a8a3d9aeed55cd7b7aaa88370f5.zip |
unique_ptrify clang::BackendConsumer::takeModule
llvm-svn: 216707
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 73066a95b2e..fe46fc78d13 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -72,7 +72,7 @@ namespace clang { llvm::TimePassesIsEnabled = TimePasses; } - llvm::Module *takeModule() { return TheModule.release(); } + std::unique_ptr<llvm::Module> takeModule() { return std::move(TheModule); } llvm::Module *takeLinkModule() { return LinkModule.release(); } void HandleCXXStaticMemberVarInstantiation(VarDecl *VD) override { @@ -576,7 +576,7 @@ void CodeGenAction::EndSourceFileAction() { BEConsumer->takeLinkModule(); // Steal the module from the consumer. - TheModule.reset(BEConsumer->takeModule()); + TheModule = BEConsumer->takeModule(); } std::unique_ptr<llvm::Module> CodeGenAction::takeModule() { |