Emit conv.i
in pointer interop only when necessary
#491
Labels
area:compiler
Related to code compilation or type checking
good-first-issue
An issue considered simple enough for new contributors
kind:feature
New feature or request
status:help-wanted
Open for contributors
After implementing #354, we now have a feature that calls C# functions with
CPtr
,VoidPtr
, andFuncPtr
in their signatures. To call them, it will always emit aconv.i
instruction.This instruction is not always required (actually, in most cases it isn't): it should only be emitted when the value on stack is not a pointer.
We should fix that, and only emit it when necessary. See
TODO[#491]
when implementing.The text was updated successfully, but these errors were encountered: