status-im / nim-serialization

A modern and extensible serialization framework for Nim
63 stars 8 forks source link

workaround `--mm:orc` codegen bug with `{.noSideEffect.}` #63

Closed etan-status closed 1 year ago

etan-status commented 1 year ago

Inlining template that uses {.noSideEffect.} without a block can lead to invalid codegen that contains double-frees. Wrap problematic instances with block to prevent issues in libnimbus_lc wasm (orc).