Skip to content

Commit 345b215

Browse files
authored
more cholmod special casing of pointers (#2579)
* more cholmod special casing of pointers * fix
1 parent 1c0668e commit 345b215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/absint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ function abs_typeof(
600600
# add the extra poitner offset when loading here]. However for pointers constructed by ccall outside julia
601601
# to a julia object, which are not inline by type but appear so, like SparseArrays, this is a problem
602602
# and merits further investigation. x/ref https://github.com/EnzymeAD/Enzyme.jl/issues/2085
603-
if !Base.allocatedinline(typ) && typ != SparseArrays.cholmod_dense_struct
603+
if !Base.allocatedinline(typ) && typ != SparseArrays.cholmod_dense_struct && typ != SparseArrays.cholmod_sparse_struct && typ != SparseArrays.cholmod_factor_struct
604604
shouldLoad = false
605605
offset %= sizeof(Int)
606606
else

0 commit comments

Comments
 (0)