Skip to content

Commit

Permalink
don't even need to allocate when spesh log is off
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Aug 16, 2018
1 parent 53dd98e commit b7c4e21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spesh/graph.c
Expand Up @@ -71,6 +71,9 @@ MVM_PUBLIC void MVM_spesh_graph_add_comment(MVMThreadContext *tc, MVMSpeshGraph
va_list ap;
MVMSpeshAnn *ann;

if (!MVM_spesh_debug_enabled(tc))
return;

va_start(ap, fmt);

size = vsnprintf(NULL, 0, fmt, ap);
Expand Down

0 comments on commit b7c4e21

Please sign in to comment.