This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Allow Diagnostic/InFlightDiagnostic to convert to FailureOr.
ClosedPublic

Authored by bzcheeseman on Mar 28 2022, 10:05 AM.

Details

Summary

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.

Diff Detail

Event Timeline

bzcheeseman created this revision.Mar 28 2022, 10:05 AM
Herald added a project: Restricted Project. · View Herald Transcript
bzcheeseman requested review of this revision.Mar 28 2022, 10:05 AM
rriddle accepted this revision.Mar 28 2022, 7:33 PM
This revision is now accepted and ready to land.Mar 28 2022, 7:33 PM