Skip to content

Commit

Permalink
[clang analyzer]consume llvm::Error (llvm#120597)
Browse files Browse the repository at this point in the history
`llvm::Error` must be consumed, otherwise it will cause trap during destructor
  • Loading branch information
HerrCai0907 authored Dec 20, 2024
1 parent fa9cef5 commit 9e33387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class TextDiagnostics : public PathDiagnosticConsumer {

if (llvm::Error Err = Repls.add(Repl)) {
llvm::errs() << "Error applying replacement " << Repl.toString()
<< ": " << Err << "\n";
<< ": " << llvm::toString(std::move(Err)) << "\n";
}
}
};
Expand Down

0 comments on commit 9e33387

Please sign in to comment.