mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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 <nobu.nakada@gmail.com>
This commit is contained in:
parent
e728170043
commit
e0d600ec19
Notes:
git
2025-01-08 16:50:14 +00:00
Merged: https://github.com/ruby/ruby/pull/12528 Merged-By: jeremyevans <code@jeremyevans.net>
3 changed files with 16 additions and 1 deletions
1
iseq.h
1
iseq.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue