dstogov / ir

Lightweight JIT Compilation Framework
MIT License
353 stars 22 forks source link

Fixup examples by making ir_init initialize the ret_type as well #61

Closed danog closed 9 months ago

danog commented 10 months ago

ret_type always needs to be initialized to -1 for all return builders to work, not sure why it is done separately (immediately after ir_init) in php-src, this moves the init inside of ir_init, thus fixing the examples.

dstogov commented 9 months ago

Examples are fixed in a bit different way via 7835df5831e24cd57628570f11d6c0d4a9593f2f. Thanks.