| 1142 | |
| 1143 | /// Convert an Expected<T> to an ErrorOr<T>. |
| 1144 | template <typename T> ErrorOr<T> expectedToErrorOr(Expected<T> &&E) { |
| 1145 | if (auto Err = E.takeError()) |
| 1146 | return errorToErrorCode(std::move(Err)); |
| 1147 | return std::move(*E); |
| 1148 | } |
| 1149 | |
| 1150 | /// This class wraps a string in an Error. |
| 1151 | /// |
nothing calls this directly
no test coverage detected