From 1a28a06ebef290e0dafcd2d2f4ca1a817263d02b Mon Sep 17 00:00:00 2001 From: Shaurya Gupta Date: Thu, 22 Aug 2019 17:36:31 +0000 Subject: [PATCH] [Clangd] Tweaktesting replace toString with consumeError llvm-svn: 369676 --- clang-tools-extra/clangd/unittests/TweakTesting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/unittests/TweakTesting.cpp b/clang-tools-extra/clangd/unittests/TweakTesting.cpp index fae70cf..8137c31 100644 --- a/clang-tools-extra/clangd/unittests/TweakTesting.cpp +++ b/clang-tools-extra/clangd/unittests/TweakTesting.cpp @@ -90,7 +90,7 @@ std::string TweakTest::apply(llvm::StringRef MarkedCode) const { auto T = prepareTweak(TweakID, S); if (!T) { - llvm::toString(T.takeError()); + llvm::consumeError(T.takeError()); return "unavailable"; } llvm::Expected Result = (*T)->apply(S); -- 2.7.4