-
-
Save timo/adbdf5632ddbfd2ef28203a9e33976be to your computer and use it in GitHub Desktop.
potential fix for https://github.com/rakudo/rakudo/issues/2395
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/6model/reprs/P6opaque.c b/src/6model/reprs/P6opaque.c | |
index 932fea4f6..49c608dac 100644 | |
--- a/src/6model/reprs/P6opaque.c | |
+++ b/src/6model/reprs/P6opaque.c | |
@@ -1751,6 +1751,7 @@ static void spesh(MVMThreadContext *tc, MVMSTable *st, MVMSpeshGraph *g, MVMSpes | |
ins->operands[0] = orig_operands[0]; | |
ins->operands[1] = orig_operands[1]; | |
ins->operands[2].lit_i16 = repr_data->attribute_offsets[repr_data->unbox_int_slot]; | |
+ MVM_spesh_get_and_use_facts(tc, g, orig_operands[1]); | |
} | |
} | |
break; | |
@@ -1765,6 +1766,7 @@ static void spesh(MVMThreadContext *tc, MVMSTable *st, MVMSpeshGraph *g, MVMSpes | |
ins->operands[0] = orig_operands[0]; | |
ins->operands[1] = orig_operands[1]; | |
ins->operands[2].lit_i16 = repr_data->attribute_offsets[repr_data->unbox_num_slot]; | |
+ MVM_spesh_get_and_use_facts(tc, g, orig_operands[1]); | |
} | |
} | |
break; | |
@@ -1779,6 +1781,7 @@ static void spesh(MVMThreadContext *tc, MVMSTable *st, MVMSpeshGraph *g, MVMSpes | |
ins->operands[0] = orig_operands[0]; | |
ins->operands[1] = orig_operands[1]; | |
ins->operands[2].lit_i16 = repr_data->attribute_offsets[repr_data->unbox_str_slot]; | |
+ MVM_spesh_get_and_use_facts(tc, g, orig_operands[1]); | |
} | |
} | |
break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment