summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/ExecutionTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Tooling/ExecutionTest.cpp')
-rw-r--r--clang/unittests/Tooling/ExecutionTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/unittests/Tooling/ExecutionTest.cpp b/clang/unittests/Tooling/ExecutionTest.cpp
index 26db8c6d0ea..19e5de7823c 100644
--- a/clang/unittests/Tooling/ExecutionTest.cpp
+++ b/clang/unittests/Tooling/ExecutionTest.cpp
@@ -79,7 +79,9 @@ private:
class ReportResultActionFactory : public FrontendActionFactory {
public:
ReportResultActionFactory(ExecutionContext *Context) : Context(Context) {}
- FrontendAction *create() override { return new ReportResultAction(Context); }
+ std::unique_ptr<FrontendAction> create() override {
+ return llvm::make_unique<ReportResultAction>(Context);
+ }
private:
ExecutionContext *const Context;
OpenPOWER on IntegriCloud