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/unittests/AST/ExternalASTSourceTest.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/unittests/AST/ExternalASTSourceTest.cpp')
-rw-r--r-- | clang/unittests/AST/ExternalASTSourceTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/AST/ExternalASTSourceTest.cpp b/clang/unittests/AST/ExternalASTSourceTest.cpp index 6a5db6c1dd3..5cc2defe20f 100644 --- a/clang/unittests/AST/ExternalASTSourceTest.cpp +++ b/clang/unittests/AST/ExternalASTSourceTest.cpp @@ -35,9 +35,9 @@ private: return ASTFrontendAction::ExecuteAction(); } - virtual std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, - StringRef InFile) { - return llvm::make_unique<ASTConsumer>(); + virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, + StringRef InFile) { + return new ASTConsumer; } IntrusiveRefCntPtr<ExternalASTSource> Source; |