From 95f4335a8fc5df815ba6d805f777e32a4cbaf892 Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Thu, 13 Feb 2025 01:24:51 +0900 Subject: [PATCH] add missing `unwrapva` --- src/analyzers/jetanalyzer.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyzers/jetanalyzer.jl b/src/analyzers/jetanalyzer.jl index 1fcd97618..ae0d3bb07 100644 --- a/src/analyzers/jetanalyzer.jl +++ b/src/analyzers/jetanalyzer.jl @@ -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