summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index c8f468662f..17bfee4981 100644
--- a/iseq.c
+++ b/iseq.c
@@ -565,6 +565,7 @@ iseq_load(VALUE data, const rb_iseq_t *parent, VALUE opt)
}
make_compile_option(&option, opt);
+ option.peephole_optimization = FALSE; /* because peephole optimization can modify original iseq */
prepare_iseq_build(iseq, name, path, absolute_path, first_lineno,
parent, (enum iseq_type)iseq_type, &option);