Skip to content

Commit 6d85705

Browse files
authored
1 parent c23d163 commit 6d85705

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/codeview.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ function cthulhu_typed(io::IO, debuginfo::Symbol,
170170
code = src isa IRCode ? src.stmts.inst : src.code
171171
cst = Vector{Int}(undef, length(code))
172172
params = CC.OptimizationParams(interp)
173-
CC.statement_costs!(cst, code, src, sptypes(mi.sparam_vals), false, params)
173+
@static if VERSION v"1.11.0-DEV.32"
174+
CC.statement_costs!(cst, code, src, sptypes(mi.sparam_vals), params)
175+
else
176+
CC.statement_costs!(cst, code, src, sptypes(mi.sparam_vals), false, params)
177+
end
174178
total_cost = sum(cst)
175179
nd = ndigits(total_cost)
176180
_lineprinter = lineprinter(src)

0 commit comments

Comments
 (0)