Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix various printstyled calls #28586

Merged
merged 1 commit into from
Aug 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions base/compiler/ssair/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand Down