Update for llvm api change.

llvm-svn: 239859
This commit is contained in:
Rafael Espindola 2015-06-16 22:32:44 +00:00
parent dcd1dca275
commit 4914d3a5ec
1 changed files with 2 additions and 2 deletions

View File

@ -649,14 +649,14 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
return nullptr;
}
ErrorOr<llvm::Module *> ModuleOrErr =
ErrorOr<std::unique_ptr<llvm::Module>> ModuleOrErr =
getLazyBitcodeModule(std::move(*BCBuf), *VMContext);
if (std::error_code EC = ModuleOrErr.getError()) {
CI.getDiagnostics().Report(diag::err_cannot_open_file)
<< LinkBCFile << EC.message();
return nullptr;
}
LinkModuleToUse = ModuleOrErr.get();
LinkModuleToUse = ModuleOrErr.get().release();
}
CoverageSourceInfo *CoverageInfo = nullptr;