summaryrefslogtreecommitdiff
path: root/unittests/Frontend/FrontendActionTest.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-07-17 22:34:12 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-07-17 22:34:12 +0000
commit80bfbba822da41b74969be8e635b1b4c8e2d3a8c (patch)
tree9c04bec373a4ad6b3b51026b7879cf93a535158d /unittests/Frontend/FrontendActionTest.cpp
parent9a8dc2497021b3758e1c521c75f0c716da3ca0d4 (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/Frontend/FrontendActionTest.cpp')
-rw-r--r--unittests/Frontend/FrontendActionTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Frontend/FrontendActionTest.cpp b/unittests/Frontend/FrontendActionTest.cpp
index 48bc07286e..e39d00f6af 100644
--- a/unittests/Frontend/FrontendActionTest.cpp
+++ b/unittests/Frontend/FrontendActionTest.cpp
@@ -38,9 +38,9 @@ public:
return ASTFrontendAction::BeginSourceFileAction(ci, filename);
}
- virtual std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
- StringRef InFile) {
- return llvm::make_unique<Visitor>(decl_names);
+ virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
+ StringRef InFile) {
+ return new Visitor(decl_names);
}
private: