Skip to content

Commit e69f3c2

Browse files
authored
Spew more debug info on extract assertion (#2149)
1 parent c9c79ac commit e69f3c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/absint.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,11 @@ function abs_typeof(
636636
return (false, nothing, nothing)
637637
end
638638
if byref == GPUCompiler.BITS_VALUE
639+
ltyp = typ
639640
for ind in offset
640-
@assert Base.isconcretetype(typ)
641+
if !Base.isconcretetype(typ)
642+
throw(AssertionError("Illegal absint of $(string(arg)) ltyp=$ltyp, typ=$typ, offset=$offset, ind=$ind"))
643+
end
641644
cnt = 0
642645
for i = 1:fieldcount(typ)
643646
styp = typed_fieldtype(typ, i)

0 commit comments

Comments
 (0)