Skip to content

Commit 11792ec

Browse files
committed
iff fieldcount is 0, don't create recursive stores
1 parent 6425f1c commit 11792ec

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
@@ -603,7 +603,7 @@ function julia_undef_value_for_type(
603603
end
604604

605605
function create_recursive_stores(B::LLVM.IRBuilder, @nospecialize(Ty::DataType), @nospecialize(prev::LLVM.Value))::Nothing
606-
if Base.datatype_pointerfree(Ty) || Ty === String
606+
if Base.datatype_pointerfree(Ty) || Base.datatype_fieldcount(Ty) == 0
607607
return
608608
end
609609

0 commit comments

Comments
 (0)