forked from OSchip/llvm-project
parent
dcd1dca275
commit
4914d3a5ec
|
@ -649,14 +649,14 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr<llvm::Module *> ModuleOrErr =
|
ErrorOr<std::unique_ptr<llvm::Module>> ModuleOrErr =
|
||||||
getLazyBitcodeModule(std::move(*BCBuf), *VMContext);
|
getLazyBitcodeModule(std::move(*BCBuf), *VMContext);
|
||||||
if (std::error_code EC = ModuleOrErr.getError()) {
|
if (std::error_code EC = ModuleOrErr.getError()) {
|
||||||
CI.getDiagnostics().Report(diag::err_cannot_open_file)
|
CI.getDiagnostics().Report(diag::err_cannot_open_file)
|
||||||
<< LinkBCFile << EC.message();
|
<< LinkBCFile << EC.message();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
LinkModuleToUse = ModuleOrErr.get();
|
LinkModuleToUse = ModuleOrErr.get().release();
|
||||||
}
|
}
|
||||||
|
|
||||||
CoverageSourceInfo *CoverageInfo = nullptr;
|
CoverageSourceInfo *CoverageInfo = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue