From fc32d0fb379f0ee38b9915ad465468df4510632a Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Mon, 13 Aug 2018 23:37:00 +0100 Subject: [PATCH] fix various `printstyled` calls (#28586) (cherry picked from commit decee6537e7924d53174768880dadfa1854d0bf1) --- base/compiler/ssair/show.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/compiler/ssair/show.jl b/base/compiler/ssair/show.jl index c1b396f22a6abf..97d74be2757027 100644 --- a/base/compiler/ssair/show.jl +++ b/base/compiler/ssair/show.jl @@ -327,7 +327,7 @@ function show_ir(io::IO, code::IRCode, expr_type_printer=default_expr_type_print bb_idx = 1 new_nodes = code.new_nodes if any(i -> !isassigned(code.new_nodes, i), 1:length(code.new_nodes)) - printstyled(io, :red, "ERROR: New node array has unset entry\n") + printstyled(io, "ERROR: New node array has unset entry\n", color=:red) new_nodes = new_nodes[filter(i -> isassigned(code.new_nodes, i), 1:length(code.new_nodes))] end for nn in new_nodes @@ -354,7 +354,7 @@ function show_ir(io::IO, code::IRCode, expr_type_printer=default_expr_type_print if !isassigned(stmts, idx) # This is invalid, but do something useful rather # than erroring, to make debugging easier - printstyled(io, :red, "#UNDEF\n") + printstyled(io, "#UNDEF\n", color=:red) continue end stmt = stmts[idx] @@ -495,7 +495,7 @@ function show_ir(io::IO, code::CodeInfo, expr_type_printer=default_expr_type_pri if !isassigned(stmts, idx) # This is invalid, but do something useful rather # than erroring, to make debugging easier - printstyled(io, :red, "#UNDEF\n") + printstyled(io, "#UNDEF\n", color=:red) continue end stmt = stmts[idx]