From 0bba93f5cdfd140b79bad3cf5189bc0399623d52 Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Fri, 20 Dec 2024 01:18:11 +0900 Subject: [PATCH] fix a mistake --- src/codeview.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codeview.jl b/src/codeview.jl index 4e574726..3ab19d95 100644 --- a/src/codeview.jl +++ b/src/codeview.jl @@ -317,6 +317,7 @@ function cthulhu_typed(io::IO, debuginfo::Symbol, println(lambda_io) else isa(mi, MethodInstance) || throw("`mi::MethodInstance` is required") + cfg = src isa IRCode ? src.cfg : CC.compute_basic_blocks(src.code) max_bb_idx_size = length(string(length(cfg.blocks))) str = irshow_config.line_info_preprinter(lambda_io, " "^(max_bb_idx_size + 2), -1) callsite = Callsite(0, MICallInfo(mi, rettype, effects, exct), :invoke)