Skip to content

Commit

Permalink
Within mi error message improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Jun 23, 2024
1 parent e980433 commit 28933dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2008,6 +2008,11 @@ function julia_error(cstr::Cstring, val::LLVM.API.LLVMValueRef, errtype::API.Err
Base.show_backtrace(io, bt)
println(io)
end
pscope = parent_scope(val)
mi, rt = enzyme_custom_extract_mi(pscope, #=error=#false)
if mi !== nothing
println(io, "within ", mi)
end
end
emit_error(B, nothing, msg2)
return C_NULL
Expand Down

0 comments on commit 28933dc

Please sign in to comment.