From: David Blaikie Date: Sun, 10 Aug 2014 21:06:17 +0000 (+0000) Subject: Follow up to r215323 - avoid llvm::make_unique in this particular case that's causing... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b856f770ec5ca23b00e0b83d38fb81fddbdea342;p=clang Follow up to r215323 - avoid llvm::make_unique in this particular case that's causing GCC on some buildbots some confusion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215327 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index a7dbd4ae15..407b92b27c 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -646,10 +646,10 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { CoverageInfo = new CoverageSourceInfo; CI.getPreprocessor().addPPCallbacks(CoverageInfo); } - auto Result = llvm::make_unique( + std::unique_ptr Result(new BackendConsumer( BA, CI.getDiagnostics(), CI.getCodeGenOpts(), CI.getTargetOpts(), - CI.getLangOpts(), (bool)CI.getFrontendOpts().ShowTimers, InFile, - LinkModuleToUse, OS.release(), *VMContext, CoverageInfo); + CI.getLangOpts(), CI.getFrontendOpts().ShowTimers, InFile, + LinkModuleToUse, OS.release(), *VMContext, CoverageInfo)); BEConsumer = Result.get(); return std::move(Result); }