diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-08-10 15:19:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-08-10 15:19:32 +0900 |
| commit | e4f32ad9ad96fddb5613178a848fafe5c869f7c9 (patch) | |
| tree | 6a1e72773d0e590c3b6d1b8ca2a8385a0e2df019 /mrbgems/mruby-compiler | |
| parent | dfaff83eba8fbf3953b6ab0e92df41899de2eccc (diff) | |
| download | mruby-e4f32ad9ad96fddb5613178a848fafe5c869f7c9.tar.gz mruby-e4f32ad9ad96fddb5613178a848fafe5c869f7c9.zip | |
codegen: don't need to genop(); just update s->iseq directly
Diffstat (limited to 'mrbgems/mruby-compiler')
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index ba451309e..3853814ec 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -191,7 +191,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val) if (GETARG_A(i) == GETARG_A(i0)) { /* skip overriden OP_MOVE */ s->pc--; - return genop_peep(s, i, val); + s->iseq[s->pc] = i; } if (GETARG_B(i) == GETARG_A(i0) && GETARG_A(i) == GETARG_B(i0)) { /* skip swapping OP_MOVE */ |
