forked from OSchip/llvm-project
[Clangd] Tweaktesting replace toString with consumeError
llvm-svn: 369676
This commit is contained in:
parent
cd2bae3bd7
commit
1a28a06ebe
|
@ -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<Tweak::Effect> Result = (*T)->apply(S);
|
||||
|
|
Loading…
Reference in New Issue