diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-17 08:03:24 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-17 08:03:24 +0900 |
| commit | be189ae9f90df298bf3e3bf720ea053297126246 (patch) | |
| tree | c077ab09612dcdc77750997835986d38c6f26d43 /mrbgems | |
| parent | 2b19a6c1b4ddb48ba59feb47b981f75dde798d46 (diff) | |
| download | mruby-be189ae9f90df298bf3e3bf720ea053297126246.tar.gz mruby-be189ae9f90df298bf3e3bf720ea053297126246.zip | |
codegen.c: forgot to check `s2` extensively in `super` codegen.
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index bf18106e8..052371dbe 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -2830,7 +2830,8 @@ codegen(codegen_scope *s, node *tree, int val) st++; } else { - gen_blkmove(s, s2->ainfo, lv); + if (!s2) push(); + else gen_blkmove(s, s2->ainfo, lv); st++; } pop_n(st+1); |
