File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,8 @@ static void diagnosticHandler(const DiagnosticInfo &DI) {
4949}
5050
5151static void checkError (Error E) {
52- handleAllErrors (std::move (E), [&](ErrorInfoBase &EIB) -> Error {
53- error (EIB.message ());
54- return Error::success ();
55- });
52+ handleAllErrors (std::move (E),
53+ [&](ErrorInfoBase &EIB) { error (EIB.message ()); });
5654}
5755
5856static void saveBuffer (StringRef Buffer, const Twine &Path) {
Original file line number Diff line number Diff line change @@ -61,10 +61,8 @@ static void diagnosticHandler(const DiagnosticInfo &DI) {
6161}
6262
6363static void checkError (Error E) {
64- handleAllErrors (std::move (E), [&](ErrorInfoBase &EIB) -> Error {
65- error (EIB.message ());
66- return Error::success ();
67- });
64+ handleAllErrors (std::move (E),
65+ [&](ErrorInfoBase &EIB) { error (EIB.message ()); });
6866}
6967
7068static std::unique_ptr<lto::LTO> createLTO () {
You can’t perform that action at this time.
0 commit comments