Follow up to r215323 - avoid llvm::make_unique in this particular case that's causing GCC on some buildbots some confusion.
llvm-svn: 215327
This commit is contained in:
@@ -646,10 +646,10 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
|
|||||||
CoverageInfo = new CoverageSourceInfo;
|
CoverageInfo = new CoverageSourceInfo;
|
||||||
CI.getPreprocessor().addPPCallbacks(CoverageInfo);
|
CI.getPreprocessor().addPPCallbacks(CoverageInfo);
|
||||||
}
|
}
|
||||||
auto Result = llvm::make_unique<BackendConsumer>(
|
std::unique_ptr<BackendConsumer> Result(new BackendConsumer(
|
||||||
BA, CI.getDiagnostics(), CI.getCodeGenOpts(), CI.getTargetOpts(),
|
BA, CI.getDiagnostics(), CI.getCodeGenOpts(), CI.getTargetOpts(),
|
||||||
CI.getLangOpts(), (bool)CI.getFrontendOpts().ShowTimers, InFile,
|
CI.getLangOpts(), CI.getFrontendOpts().ShowTimers, InFile,
|
||||||
LinkModuleToUse, OS.release(), *VMContext, CoverageInfo);
|
LinkModuleToUse, OS.release(), *VMContext, CoverageInfo));
|
||||||
BEConsumer = Result.get();
|
BEConsumer = Result.get();
|
||||||
return std::move(Result);
|
return std::move(Result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user