summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2025-01-08 08:49:51 -0800
committerGitHub <[email protected]>2025-01-08 08:49:51 -0800
commite0d600ec190c64aff76cfcbd6009cffb927da166 (patch)
tree3ef2eba19dc6ab2269b8f0c9f3ccb303f24e2037 /iseq.h
parente728170043ab9afb0f064af2bcfcf6ca06f9573d (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index a0b59c441f..a9af64572e 100644
--- a/iseq.h
+++ b/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;