Skip to content

Commit

Permalink
Abs int end of load
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Sep 27, 2024
1 parent bbafecf commit 2cc9369
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/absint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,22 @@ function abs_typeof(
lasti = i
end
end
if !seen && fieldcount(typ) > 0
offset = offset - fieldoffset(typ, lasti)
typ = fieldtype(typ, lasti)
@assert Base.isconcretetype(typ)
if !Base.allocatedinline(typ)
legal = false
end
seen = true
end
if !seen
legal = false
end
end

typ2 = typ
while should_recurse(typ2, value_type(arg), byref, dl)
while legal && should_recurse(typ2, value_type(arg), byref, dl)
idx, _ = first_non_ghost(typ2)
if idx != -1
typ2 = fieldtype(typ2, idx)
Expand Down

0 comments on commit 2cc9369

Please sign in to comment.