| 91 | } |
| 92 | |
| 93 | std::error_code errorToErrorCode(Error Err) { |
| 94 | std::error_code EC; |
| 95 | handleAllErrors(std::move(Err), [&](const ErrorInfoBase &EI) { |
| 96 | EC = EI.convertToErrorCode(); |
| 97 | }); |
| 98 | if (EC == inconvertibleErrorCode()) |
| 99 | report_fatal_error(EC.message()); |
| 100 | return EC; |
| 101 | } |
| 102 | |
| 103 | #if LLVM_ENABLE_ABI_BREAKING_CHECKS |
| 104 | void Error::fatalUncheckedError() const { |
no test coverage detected