[all-commits] [llvm/llvm-project] 4fec44: [mlir] Allow Diagnostic/InFlightDiagnostic to conv...

Aman LaChapelle via All-commits all-commits at lists.llvm.org
Wed Mar 30 01:47:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4fec44b0e63d0dcde0897cf55670ccc1748c8654
      https://github.com/llvm/llvm-project/commit/4fec44b0e63d0dcde0897cf55670ccc1748c8654
  Author: bzcheeseman <12992886+bzcheeseman at users.noreply.github.com>
  Date:   2022-03-30 (Wed, 30 Mar 2022)

  Changed paths:
    M mlir/include/mlir/IR/Diagnostics.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list