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 | 80bfbba822da41b74969be8e635b1b4c8e2d3a8c (patch) | |
tree | 9c04bec373a4ad6b3b51026b7879cf93a535158d /unittests/Sema | |
parent | 9a8dc2497021b3758e1c521c75f0c716da3ca0d4 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Sema')
-rw-r--r-- | unittests/Sema/ExternalSemaSourceTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Sema/ExternalSemaSourceTest.cpp b/unittests/Sema/ExternalSemaSourceTest.cpp index 4291b76e7d..bc0d632cfd 100644 --- a/unittests/Sema/ExternalSemaSourceTest.cpp +++ b/unittests/Sema/ExternalSemaSourceTest.cpp @@ -140,10 +140,10 @@ class ExternalSemaSourceInstaller : public clang::ASTFrontendAction { std::unique_ptr<DiagnosticConsumer> OwnedClient; protected: - virtual std::unique_ptr<clang::ASTConsumer> + virtual clang::ASTConsumer * CreateASTConsumer(clang::CompilerInstance &Compiler, llvm::StringRef /* dummy */) { - return llvm::make_unique<clang::ASTConsumer>(); + return new clang::ASTConsumer(); } virtual void ExecuteAction() { |