From 497fd98af2fff16b5b885f1bdac3b9b039f5080f Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Tue, 27 Feb 2018 15:54:55 +0000 Subject: Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- clang/unittests/Tooling/RefactoringTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/unittests/Tooling/RefactoringTest.cpp') diff --git a/clang/unittests/Tooling/RefactoringTest.cpp b/clang/unittests/Tooling/RefactoringTest.cpp index d9d82eb43fa..41836f11ee2 100644 --- a/clang/unittests/Tooling/RefactoringTest.cpp +++ b/clang/unittests/Tooling/RefactoringTest.cpp @@ -650,7 +650,7 @@ template class TestVisitor : public clang::RecursiveASTVisitor { public: bool runOver(StringRef Code) { - return runToolOnCode(llvm::make_unique(this), Code); + return runToolOnCode(new TestAction(this), Code); } protected: -- cgit v1.2.3