mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove consequent OP_RETURN by peephole optimization.
This commit is contained in:
@@ -461,7 +461,7 @@ gen_return(codegen_scope *s, uint8_t op, uint16_t src)
|
||||
s->pc = s->lastpc;
|
||||
genop_1(s, op, data.b);
|
||||
}
|
||||
else {
|
||||
else if (data.insn != OP_RETURN) {
|
||||
genop_1(s, op, src);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user