diff --git a/src/absint.jl b/src/absint.jl index 169db8965f..3b9034bef6 100644 --- a/src/absint.jl +++ b/src/absint.jl @@ -652,6 +652,13 @@ function abs_typeof( break end cnt += 1 + if Enzyme.Compiler.is_sret_union(styp) + if cnt == ind + typ = UInt8 + break + end + cnt += 1 + end end end if Base.allocatedinline(typ)