]> granicus.if.org Git - clang/commitdiff
Follow up to r215323 - avoid llvm::make_unique in this particular case that's causing...
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 10 Aug 2014 21:06:17 +0000 (21:06 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 10 Aug 2014 21:06:17 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215327 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenAction.cpp

index a7dbd4ae1598e5cd026a451240ee882a86a3b11b..407b92b27c088dcad9734bef2e31e5366a345222 100644 (file)
@@ -646,10 +646,10 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
     CoverageInfo = new CoverageSourceInfo;
     CI.getPreprocessor().addPPCallbacks(CoverageInfo);
   }
-  auto Result = llvm::make_unique<BackendConsumer>(
+  std::unique_ptr<BackendConsumer> 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);
 }