summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-10 21:06:17 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-10 21:06:17 +0000
commit037e75bf3c91d937a3f827c8dcc33f493bb0ef7c (patch)
treee37a462dea87bd449b54651acf19d3bd88620185 /clang/lib/CodeGen/CodeGenAction.cpp
parent04c39ece803939548dd4c88cacfbbbf3e3d41283 (diff)
downloadbcm5719-llvm-037e75bf3c91d937a3f827c8dcc33f493bb0ef7c.tar.gz
bcm5719-llvm-037e75bf3c91d937a3f827c8dcc33f493bb0ef7c.zip
Follow up to r215323 - avoid llvm::make_unique in this particular case that's causing GCC on some buildbots some confusion.
llvm-svn: 215327
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index a7dbd4ae159..407b92b27c0 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/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<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);
}
OpenPOWER on IntegriCloud