summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RefactoringTest.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2018-02-27 15:54:55 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2018-02-27 15:54:55 +0000
commit497fd98af2fff16b5b885f1bdac3b9b039f5080f (patch)
tree1aa1c150c739fec069916ed7f0b0aeed818b5e64 /clang/unittests/Tooling/RefactoringTest.cpp
parent12b40745abb776d596caf12c4b17444c9369e4bf (diff)
downloadbcm5719-llvm-497fd98af2fff16b5b885f1bdac3b9b039f5080f.tar.gz
bcm5719-llvm-497fd98af2fff16b5b885f1bdac3b9b039f5080f.zip
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
Diffstat (limited to 'clang/unittests/Tooling/RefactoringTest.cpp')
-rw-r--r--clang/unittests/Tooling/RefactoringTest.cpp2
1 files changed, 1 insertions, 1 deletions
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 <typename T>
class TestVisitor : public clang::RecursiveASTVisitor<T> {
public:
bool runOver(StringRef Code) {
- return runToolOnCode(llvm::make_unique<TestAction>(this), Code);
+ return runToolOnCode(new TestAction(this), Code);
}
protected:
OpenPOWER on IntegriCloud