codegen.c: need to check no_peephole() before constant folding.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-09-23 21:19:36 +09:00
parent 4c196dbba5
commit a844f89655
+1
View File
@@ -1136,6 +1136,7 @@ gen_int(codegen_scope *s, uint16_t dst, mrb_int i)
static mrb_bool
gen_uniop(codegen_scope *s, mrb_sym sym, uint16_t dst)
{
if (no_peephole(s)) return FALSE;
struct mrb_insn_data data = mrb_last_insn(s);
mrb_int n;