From f265ca20b8c7f8e5179dd266acb92d9541fcaa5f Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Mon, 10 Nov 2025 19:50:17 +0100 Subject: [PATCH] unwrap ExceptionStack in code_ handling --- src/reflection.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/reflection.jl b/src/reflection.jl index 4cae6f01..7cfa1b55 100644 --- a/src/reflection.jl +++ b/src/reflection.jl @@ -164,6 +164,12 @@ InteractiveUtils.code_lowered(err::KernelError; kwargs...) = code_lowered(err.jo InteractiveUtils.code_typed(err::KernelError; kwargs...) = code_typed(err.job; kwargs...) InteractiveUtils.code_warntype(err::KernelError; kwargs...) = code_warntype(err.job; kwargs...) +# Technically type-pirarcy +InteractiveUtils.code_lowered(err::Base.ExceptionStack; kwargs...) = InteractiveUtils.code_lowered(only(err.stack).exception; kwargs...) +InteractiveUtils.code_typed(err::Base.ExceptionStack; kwargs...) = InteractiveUtils.code_typed(only(err.stack).exception; kwargs...) +InteractiveUtils.code_warntype(err::Base.ExceptionStack; kwargs...) = InteractiveUtils.code_warntype(only(err.stack).exception; kwargs...) + + struct jl_llvmf_dump TSM::LLVM.API.LLVMOrcThreadSafeModuleRef F::LLVM.API.LLVMValueRef