r215980 - Move the body out of line to try to fix a buildbot.

Rafael Espindola rafael.espindola at gmail.com
Tue Aug 19 07:36:36 PDT 2014


Author: rafael
Date: Tue Aug 19 09:36:35 2014
New Revision: 215980

URL: http://llvm.org/viewvc/llvm-project?rev=215980&view=rev
Log:
Move the body out of line to try to fix a buildbot.

Modified:
    cfe/trunk/include/clang/CodeGen/CodeGenAction.h
    cfe/trunk/lib/CodeGen/CodeGenAction.cpp

Modified: cfe/trunk/include/clang/CodeGen/CodeGenAction.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/CodeGen/CodeGenAction.h?rev=215980&r1=215979&r2=215980&view=diff
==============================================================================
--- cfe/trunk/include/clang/CodeGen/CodeGenAction.h (original)
+++ cfe/trunk/include/clang/CodeGen/CodeGenAction.h Tue Aug 19 09:36:35 2014
@@ -54,7 +54,7 @@ public:
 
   /// Take the generated LLVM module, for use after the action has been run.
   /// The result may be null on failure.
-  std::unique_ptr<llvm::Module> takeModule() { return std::move(TheModule); }
+  std::unique_ptr<llvm::Module> takeModule();
 
   /// Take the LLVM context used by this action.
   llvm::LLVMContext *takeLLVMContext();

Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=215980&r1=215979&r2=215980&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Tue Aug 19 09:36:35 2014
@@ -579,6 +579,10 @@ void CodeGenAction::EndSourceFileAction(
   TheModule.reset(BEConsumer->takeModule());
 }
 
+std::unique_ptr<llvm::Module> CodeGenAction::takeModule() {
+  return std::move(TheModule);
+}
+
 llvm::LLVMContext *CodeGenAction::takeLLVMContext() {
   OwnsVMContext = false;
   return VMContext;





More information about the cfe-commits mailing list