This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Check FunctionOpInterface castable type
ClosedPublic

Authored by Lewuathe on Apr 20 2023, 9:01 PM.

Details

Summary

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.

Diff Detail

Event Timeline

Lewuathe created this revision.Apr 20 2023, 9:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2023, 9:01 PM
Lewuathe requested review of this revision.Apr 20 2023, 9:01 PM
mehdi_amini accepted this revision.Apr 20 2023, 9:08 PM
mehdi_amini added a reviewer: rriddle.

Thanks for the fix.

This revision is now accepted and ready to land.Apr 20 2023, 9:08 PM
This revision was automatically updated to reflect the committed changes.