mruby-compiler: fixed a bug in string literal merge; fix #6491

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-03-16 21:17:55 +09:00
parent a6848ca2cb
commit d1909320d9
+1 -1
View File
@@ -838,7 +838,7 @@ merge_op_string(codegen_scope *s, uint16_t dst, uint16_t b1, uint16_t b2, const
struct mrb_insn_data data = mrb_decode_insn(i);
if (data.insn == OP_STRING) {
if (data.b == b1) used |= 1;
else if (data.b == b2) used |= 2;
if (data.b == b2) used |= 2;
}
switch (i[0]) {
case OP_EXT1: