diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2018-02-27 15:54:55 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2018-02-27 15:54:55 +0000 |
commit | 497fd98af2fff16b5b885f1bdac3b9b039f5080f (patch) | |
tree | 1aa1c150c739fec069916ed7f0b0aeed818b5e64 /clang/docs/LibTooling.rst | |
parent | 12b40745abb776d596caf12c4b17444c9369e4bf (diff) | |
download | bcm5719-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/docs/LibTooling.rst')
-rw-r--r-- | clang/docs/LibTooling.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/docs/LibTooling.rst b/clang/docs/LibTooling.rst index 848fa79bb60..75ef6a0fe7e 100644 --- a/clang/docs/LibTooling.rst +++ b/clang/docs/LibTooling.rst @@ -34,7 +34,7 @@ looked for. Let me give you an example: TEST(runToolOnCode, CanSyntaxCheckCode) { // runToolOnCode returns whether the action was correctly run over the // given code. - EXPECT_TRUE(runToolOnCode(llvm::make_unique<clang::SyntaxOnlyAction>(), "class X {};")); + EXPECT_TRUE(runToolOnCode(new clang::SyntaxOnlyAction, "class X {};")); } Writing a standalone tool |