This results from the incorrect type checking implementation. We should use isa<...> to test if a type is a specific type, and use cast<...> to actually cast the type.
Thanks for the test case. This issue is because FixedPointToInteger pass assumed all arguments are memrefs. I just fixed this issue and added a corresponding test case.
As the title says, the following program causes the error. There is a non-memref type
%arg2:index
in the function argument.This results from the incorrect type checking implementation. We should use
isa<...>
to test if a type is a specific type, and usecast<...>
to actually cast the type.