Navigation Menu

Skip to content

Commit

Permalink
codegen.c: need to check no_peephole() before constant folding.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Sep 23, 2021
1 parent 4c196db commit a844f89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mrbgems/mruby-compiler/core/codegen.c
Expand Up @@ -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;

Expand Down

0 comments on commit a844f89

Please sign in to comment.