Skip to content

Commit

Permalink
add missing unwrapva
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Feb 12, 2025
1 parent d174399 commit 95f4335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyzers/jetanalyzer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ function report_serious_exception!(analyzer::JETAnalyzer, sv::InferenceState, ar
return true
end
end
elseif widenconst(a) <: ArgumentError
elseif widenconst(CC.unwrapva(a)) <: ArgumentError
# promote `ArgumentError` thrown by `to_index` method
# so that we get reports from dangerous indexing (aviatesk/JET.jl#581)
def = sv.linfo.def
Expand Down

0 comments on commit 95f4335

Please sign in to comment.