Skip to content

Commit

Permalink
Fix invalidations in finish_show_ir (#48134)
Browse files Browse the repository at this point in the history
The whole module is under `@nospecialize`, so inference
needs us to annotate the argtypes.
  • Loading branch information
timholy authored Jan 5, 2023
1 parent dc2b4d9 commit 0913cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/compiler/ssair/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ function show_ir_stmts(io::IO, ir::Union{IRCode, CodeInfo, IncrementalCompact},
return bb_idx
end

function finish_show_ir(io::IO, cfg, config::IRShowConfig)
function finish_show_ir(io::IO, cfg::CFG, config::IRShowConfig)
max_bb_idx_size = length(string(length(cfg.blocks)))
config.line_info_preprinter(io, " "^(max_bb_idx_size + 2), 0)
return nothing
Expand Down

0 comments on commit 0913cbc

Please sign in to comment.