Remove consequent OP_RETURN by peephole optimization.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-08-30 01:23:17 +09:00
parent 5addd5db4a
commit 75a01af710
+1 -1
View File
@@ -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);
}
}