commit | 497fd98af2fff16b5b885f1bdac3b9b039f5080f | [log] [tgz] |
---|---|---|
author | Roman Lebedev <lebedev.ri@gmail.com> | Tue Feb 27 15:54:55 2018 +0000 |
committer | Roman Lebedev <lebedev.ri@gmail.com> | Tue Feb 27 15:54:55 2018 +0000 |
tree | 1aa1c150c739fec069916ed7f0b0aeed818b5e64 | |
parent | 12b40745abb776d596caf12c4b17444c9369e4bf [diff] [blame] |
Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" This reverts commit rL326201 This broke gcc4.8 builds, compiler just segfaults:¬ http://lab.llvm.org:8011/builders/clang-atom-d525-fedora-rel/builds/14909¬ http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/22673¬ llvm-svn: 326204
diff --git a/clang/unittests/Tooling/ExecutionTest.cpp b/clang/unittests/Tooling/ExecutionTest.cpp index 19e5de7..26db8c6 100644 --- a/clang/unittests/Tooling/ExecutionTest.cpp +++ b/clang/unittests/Tooling/ExecutionTest.cpp
@@ -79,9 +79,7 @@ class ReportResultActionFactory : public FrontendActionFactory { public: ReportResultActionFactory(ExecutionContext *Context) : Context(Context) {} - std::unique_ptr<FrontendAction> create() override { - return llvm::make_unique<ReportResultAction>(Context); - } + FrontendAction *create() override { return new ReportResultAction(Context); } private: ExecutionContext *const Context;