[all-commits] [llvm/llvm-project] e5f8cd: [mlir] Check FunctionOpInterface castable type

Kai Sasaki via All-commits all-commits at lists.llvm.org
Fri Apr 21 20:53:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e5f8cdd68527b718ecfcc4724e3358b34e5014e5
      https://github.com/llvm/llvm-project/commit/e5f8cdd68527b718ecfcc4724e3358b34e5014e5
  Author: Kai Sasaki <lewuathe at gmail.com>
  Date:   2023-04-22 (Sat, 22 Apr 2023)

  Changed paths:
    M mlir/lib/Transforms/Utils/DialectConversion.cpp
    M mlir/test/Transforms/test-legalize-type-conversion.mlir

  Log Message:
  -----------
  [mlir] Check FunctionOpInterface castable type

As convertFuncOpTypes does not support other FuncOpInterface types, we should check the type to avoid assertion failure. The original issue was reported https://github.com/llvm/llvm-project/issues/61858.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D148873




More information about the All-commits mailing list