]> granicus.if.org Git - clang/commitdiff
Update for llvm api change.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 26 Aug 2014 22:00:14 +0000 (22:00 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 26 Aug 2014 22:00:14 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216493 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenAction.cpp

index 67e840cb48793c0028111197f5bb6907f55c93e4..b429de7aad8547a190df88a60312a21e10989f79 100644 (file)
@@ -633,13 +633,12 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
     }
 
     ErrorOr<llvm::Module *> ModuleOrErr =
-        getLazyBitcodeModule(BCBuf.get(), *VMContext);
+        getLazyBitcodeModule(BCBuf, *VMContext);
     if (std::error_code EC = ModuleOrErr.getError()) {
       CI.getDiagnostics().Report(diag::err_cannot_open_file)
         << LinkBCFile << EC.message();
       return nullptr;
     }
-    BCBuf.release(); // Owned by the module now.
     LinkModuleToUse = ModuleOrErr.get();
   }