Cesium icon indicating copy to clipboard operation
Cesium copied to clipboard

Emit `conv.i` in pointer interop only when necessary

Open ForNeVeR opened this issue 1 year ago • 0 comments

After implementing #354, we now have a feature that calls C# functions with CPtr, VoidPtr, and FuncPtr in their signatures. To call them, it will always emit a conv.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.

ForNeVeR avatar Nov 23 '23 22:11 ForNeVeR