diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-12-02 09:47:13 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-12-02 09:47:13 +0900 |
| commit | affb18b85bf8e4d3a22582d6359aa43b1a9af8cc (patch) | |
| tree | 0d33ab0f224500a993e3b907f6abfb6d30dae6a3 | |
| parent | 826fe1bc36a298f682de51ea29d949dcc15e42ab (diff) | |
| download | mruby-affb18b85bf8e4d3a22582d6359aa43b1a9af8cc.tar.gz mruby-affb18b85bf8e4d3a22582d6359aa43b1a9af8cc.zip | |
Remove assertions to check catch handler offset to be in 16bits.
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index 4c67988e4..6f1edd20e 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -3265,9 +3265,6 @@ catch_handler_set(codegen_scope *s, int ent, enum mrb_catch_type type, uint32_t struct mrb_irep_catch_handler *e; mrb_assert(ent >= 0 && ent < s->irep->clen); - mrb_assert(begin < MAXARG_S); - mrb_assert(end < MAXARG_S); - mrb_assert(target < MAXARG_S); e = &s->catch_table[ent]; uint8_to_bin(type, &e->type); |
