r217050 - Update for LLVM api change.

Rafael Espindola rafael.espindola at gmail.com
Wed Sep 3 10:31:53 PDT 2014


Author: rafael
Date: Wed Sep  3 12:31:52 2014
New Revision: 217050

URL: http://llvm.org/viewvc/llvm-project?rev=217050&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=217050&r1=217049&r2=217050&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Wed Sep  3 12:31:52 2014
@@ -633,7 +633,7 @@ CodeGenAction::CreateASTConsumer(Compile
     }
 
     ErrorOr<llvm::Module *> ModuleOrErr =
-        getLazyBitcodeModule(BCBuf, *VMContext);
+        getLazyBitcodeModule(std::move(BCBuf), *VMContext);
     if (std::error_code EC = ModuleOrErr.getError()) {
       CI.getDiagnostics().Report(diag::err_cannot_open_file)
         << LinkBCFile << EC.message();





More information about the cfe-commits mailing list