Skip to content

Commit

Permalink
confprog: allow "say" with null strings
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Jun 24, 2019
1 parent ad15e41 commit 80bc744
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/profiler/configuration.c
Expand Up @@ -645,11 +645,14 @@ MVMint64 MVM_confprog_run(MVMThreadContext *tc, void *subject, MVMuint8 entrypoi
junkprint(stderr, "set\n");
cur_op += 4;
goto NEXT;
OP(say):
MVM_string_say(tc, GET_REG(cur_op, 0).s);
OP(say): {
MVMString *s = GET_REG(cur_op, 0).s;
if (s && IS_CONCRETE(s))
MVM_string_say(tc, s);
junkprint(stderr, "say\n");
cur_op += 2;
goto NEXT;
}
OP(getattr_o):
junkprint(stderr, "struct select: %x\n", reg_base[REGISTER_STRUCT_SELECT].i64);
if (reg_base[REGISTER_STRUCT_SELECT].i64 == StructSel_Nothing) {
Expand Down

0 comments on commit 80bc744

Please sign in to comment.