Update for llvm api change.

llvm-svn: 216493
This commit is contained in:
Rafael Espindola 2014-08-26 22:00:14 +00:00
parent e2c1d77fb4
commit f26596d11a
1 changed files with 1 additions and 2 deletions

View 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();
}