@@ -327,7 +327,7 @@ function show_ir(io::IO, code::IRCode, expr_type_printer=default_expr_type_print
327327 bb_idx = 1
328328 new_nodes = code. new_nodes
329329 if any (i -> ! isassigned (code. new_nodes, i), 1 : length (code. new_nodes))
330- printstyled (io, :red , " ERROR: New node array has unset entry\n " )
330+ printstyled (io, " ERROR: New node array has unset entry\n " , color = :red )
331331 new_nodes = new_nodes[filter (i -> isassigned (code. new_nodes, i), 1 : length (code. new_nodes))]
332332 end
333333 for nn in new_nodes
@@ -354,7 +354,7 @@ function show_ir(io::IO, code::IRCode, expr_type_printer=default_expr_type_print
354354 if ! isassigned (stmts, idx)
355355 # This is invalid, but do something useful rather
356356 # than erroring, to make debugging easier
357- printstyled (io, :red , " #UNDEF\n " )
357+ printstyled (io, " #UNDEF\n " , color = :red )
358358 continue
359359 end
360360 stmt = stmts[idx]
@@ -495,7 +495,7 @@ function show_ir(io::IO, code::CodeInfo, expr_type_printer=default_expr_type_pri
495495 if ! isassigned (stmts, idx)
496496 # This is invalid, but do something useful rather
497497 # than erroring, to make debugging easier
498- printstyled (io, :red , " #UNDEF\n " )
498+ printstyled (io, " #UNDEF\n " , color = :red )
499499 continue
500500 end
501501 stmt = stmts[idx]
0 commit comments