Skip to content

Commit 2c17f4c

Browse files
committed
use fallback
1 parent 53c0911 commit 2c17f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ function create_recursive_stores(B::LLVM.IRBuilder, @nospecialize(Ty::DataType),
647647
LLVM.Value[LLVM.ConstantInt(Int64(off))],
648648
)
649649

650-
fallback = Base.isabstracttype(Ty2) || Ty2 isa Union
650+
fallback = Base.isabstracttype(Ty2) || Ty2 isa Union || Base.datatype_fieldcount(Ty2) == 0
651651

652652
@static if VERSION < v"1.11-"
653653
fallback |= Ty2 <: Array

0 commit comments

Comments
 (0)