From: Rafael Espindola Date: Tue, 26 Aug 2014 22:00:14 +0000 (+0000) Subject: Update for llvm api change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b4975f967cd0852a9f62545977727f29a0e2cd2;p=clang Update for llvm api change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216493 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 67e840cb48..b429de7aad 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -633,13 +633,12 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { } ErrorOr 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(); }