Skip to content
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
4 changes: 2 additions & 2 deletions base/compiler/ssair/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ function show_ir_stmt(io::IO, code::Union{IRCode, CodeInfo}, idx::Int, line_info
if new_node_type === UNDEF # try to be robust against errors
printstyled(io, "::#UNDEF", color=:red)
elseif show_type
line_info_postprinter(io, new_node_type, node_idx in used)
line_info_postprinter(IOContext(io, :idx => node_idx), new_node_type, node_idx in used)
end
println(io)
i += 1
Expand All @@ -643,7 +643,7 @@ function show_ir_stmt(io::IO, code::Union{IRCode, CodeInfo}, idx::Int, line_info
# This is an error, but can happen if passes don't update their type information
printstyled(io, "::#UNDEF", color=:red)
elseif show_type
line_info_postprinter(io, type, idx in used)
line_info_postprinter(IOContext(io, :idx => idx), type, idx in used)
end
end
println(io)
Expand Down