diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:34:12 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:34:12 +0000 |
commit | 62a56f39b7c5587a1b2144880500689bea5f32e4 (patch) | |
tree | c6f21dd30c4dfd02f50e4ca54712b24f2022a6f4 /clang/lib/Frontend/ChainedIncludesSource.cpp | |
parent | 5bae2c87d5946ee72ad31d88033ed5ecbd01ada2 (diff) | |
download | bcm5719-llvm-62a56f39b7c5587a1b2144880500689bea5f32e4.tar.gz bcm5719-llvm-62a56f39b7c5587a1b2144880500689bea5f32e4.zip |
Revert "unique_ptr-ify ownership of ASTConsumers"
This reverts commit r213307.
Reverting to have some on-list discussion/confirmation about the ongoing
direction of smart pointer usage in the LLVM project.
llvm-svn: 213325
Diffstat (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r-- | clang/lib/Frontend/ChainedIncludesSource.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp index 6b14e2505f8..e6e73ac963f 100644 --- a/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/clang/lib/Frontend/ChainedIncludesSource.cpp @@ -158,12 +158,12 @@ IntrusiveRefCntPtr<ExternalSemaSource> clang::createChainedIncludesSource( SmallVector<char, 256> serialAST; llvm::raw_svector_ostream OS(serialAST); - auto consumer = - llvm::make_unique<PCHGenerator>(Clang->getPreprocessor(), "-", nullptr, - /*isysroot=*/"", &OS); + std::unique_ptr<ASTConsumer> consumer; + consumer.reset(new PCHGenerator(Clang->getPreprocessor(), "-", nullptr, + /*isysroot=*/"", &OS)); Clang->getASTContext().setASTMutationListener( consumer->GetASTMutationListener()); - Clang->setASTConsumer(std::move(consumer)); + Clang->setASTConsumer(consumer.release()); Clang->createSema(TU_Prefix, nullptr); if (firstInclude) { |