Skip to content

Commit

Permalink
Use cur_frame, not tc->cur_frame access again
Browse files Browse the repository at this point in the history
Oversight spotted by japhb++.
  • Loading branch information
jnthn committed Feb 20, 2018
1 parent 258684f commit 8de11a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spesh/log.h
Expand Up @@ -27,7 +27,7 @@ struct MVMSpeshLogGuard {
/* Quick check if we are logging, to save function call overhead. */
MVM_STATIC_INLINE MVMint32 MVM_spesh_log_is_logging(MVMThreadContext *tc) {
MVMFrame *cur_frame = tc->cur_frame;
return cur_frame->spesh_cand == NULL && tc->cur_frame->spesh_correlation_id && tc->spesh_log;
return cur_frame->spesh_cand == NULL && cur_frame->spesh_correlation_id && tc->spesh_log;
}

void MVM_spesh_log_initialize_thread(MVMThreadContext *tc, MVMint32 main_thread);
Expand Down

0 comments on commit 8de11a8

Please sign in to comment.