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 0217565 commit fb5efed
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 @@ -2010,6 +2010,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 fb5efed

Please sign in to comment.