diff options
author | Jeremy Evans <[email protected]> | 2025-01-08 08:49:51 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2025-01-08 08:49:51 -0800 |
commit | e0d600ec190c64aff76cfcbd6009cffb927da166 (patch) | |
tree | 3ef2eba19dc6ab2269b8f0c9f3ccb303f24e2037 /iseq.h | |
parent | e728170043ab9afb0f064af2bcfcf6ca06f9573d (diff) |
Avoid opt_aset_with optimization inside multiple assignment
Previously, since the opt_aset_with optimization was introduced,
use of the opt_aset_with optimization inside multiple assignment
would result in a segfault or incorrect instructions.
Fixes [Bug #21012]
Co-authored-by: Nobuyoshi Nakada <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12528
Merged-By: jeremyevans <[email protected]>
Diffstat (limited to 'iseq.h')
-rw-r--r-- | iseq.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -119,6 +119,7 @@ struct iseq_compile_data { struct iseq_compile_data_storage *storage_current; } insn; bool in_rescue; + bool in_masgn; int loopval_popped; /* used by NODE_BREAK */ int last_line; int label_no; |