Skip to content

Commit 4c6e7cc

Browse files
authored
Absint through sret unions (#2155)
* Absint through sret unions * Update Project.toml
1 parent ab705ac commit 4c6e7cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/absint.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,13 @@ function abs_typeof(
652652
break
653653
end
654654
cnt += 1
655+
if Enzyme.Compiler.is_sret_union(styp)
656+
if cnt == ind
657+
typ = UInt8
658+
break
659+
end
660+
cnt += 1
661+
end
655662
end
656663
end
657664
if Base.allocatedinline(typ)

0 commit comments

Comments
 (0)