[mlir] Allow Diagnostic/InFlightDiagnostic to convert to FailureOr.
Allow conversion of a diagnostic to FailureOr. This conversion only results in `failure` because in the case where operator LogicalResult would return success, the FailureOr constructor would assert. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D122596
Loading
Please sign in to comment