Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FFI: Fix recording of union initialization.
Thanks to Alex Shpilkin. (cherry-picked from commit 56c04ac) As stated here[1], only the first field of a union can be initialized with a flat initializer. However, before this patch, on-trace initialization instructions were emitted for other union members too, overwriting the previous initialization values. This patch fixes the mentioned behavior by preventing initialization of members other than the first one. [1]: https://luajit.org/ext_ffi_semantics.html#init Maxim Kokryashkin: * added the description and the test for the problem Part of tarantool/tarantool#8825
- Loading branch information