| 138 | } |
| 139 | |
| 140 | void report_fatal_error(Error Err, bool GenCrashDiag) { |
| 141 | assert(Err && "report_fatal_error called with success value"); |
| 142 | std::string ErrMsg; |
| 143 | { |
| 144 | raw_string_ostream ErrStream(ErrMsg); |
| 145 | logAllUnhandledErrors(std::move(Err), ErrStream); |
| 146 | } |
| 147 | report_fatal_error(ErrMsg); |
| 148 | } |
| 149 | |
| 150 | } // end namespace llvm |
no test coverage detected