From dbf3205485aff07af469ab0cbe609813cdc36d33 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Sun, 1 Dec 2024 00:45:57 -0500 Subject: [PATCH] Spew more debug info on extract assertion --- src/absint.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/absint.jl b/src/absint.jl index 5a72fa0873..1a684a1422 100644 --- a/src/absint.jl +++ b/src/absint.jl @@ -636,8 +636,11 @@ function abs_typeof( return (false, nothing, nothing) end if byref == GPUCompiler.BITS_VALUE + ltyp = typ for ind in offset - @assert Base.isconcretetype(typ) + if !Base.isconcretetype(typ) + throw(AssertionError("Illegal absint of $(string(arg)) ltyp=$ltyp, typ=$typ, offset=$offset, ind=$ind")) + end cnt = 0 for i = 1:fieldcount(typ) styp = typed_fieldtype(typ, i)