Skip to content

Commit

Permalink
Fix a thinko.
Browse files Browse the repository at this point in the history
Just 'cus the code look like it'll do the right thing doesn't mean it
actually will...
  • Loading branch information
jnthn committed Jun 11, 2014
1 parent d0466b6 commit a1ad3b2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/spesh/inline.c
Expand Up @@ -170,17 +170,21 @@ void merge_graph(MVMThreadContext *tc, MVMSpeshGraph *inliner,
break;
default: {
MVMuint32 type = flags & MVM_operand_type_mask;
if (type == MVM_operand_spesh_slot)
if (type == MVM_operand_spesh_slot) {
ins->operands[i].lit_i16 += inliner->num_spesh_slots;
else if (type == MVM_operand_callsite)
}
else if (type == MVM_operand_callsite) {
if (!same_comp_unit)
fix_callsite(tc, inliner, inlinee, &(ins->operands[i]));
else if (type == MVM_operand_coderef)
}
else if (type == MVM_operand_coderef) {
if (!same_comp_unit)
fix_coderef(tc, inliner, inlinee, &(ins->operands[i]));
else if (type == MVM_operand_str)
}
else if (type == MVM_operand_str) {
if (!same_comp_unit)
fix_str(tc, inliner, inlinee, &(ins->operands[i]));
}
break;
}
}
Expand Down

0 comments on commit a1ad3b2

Please sign in to comment.