summaryrefslogtreecommitdiff
path: root/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
commitb2349051ab0cb25c90ba2fa80482e380d32a4263 (patch)
tree66fd048b53797850a2da6d713bae669da6b0477a /unittests/Tooling/RefactoringTest.cpp
parent9438256f7d6890d53e575269287b428086f48e70 (diff)
downloadclang-b2349051ab0cb25c90ba2fa80482e380d32a4263.tar.gz
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¬ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Tooling/RefactoringTest.cpp')
-rw-r--r--unittests/Tooling/RefactoringTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Tooling/RefactoringTest.cpp b/unittests/Tooling/RefactoringTest.cpp
index d9d82eb43f..41836f11ee 100644
--- a/unittests/Tooling/RefactoringTest.cpp
+++ b/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: