Skip to content

Commit 1820efa

Browse files
Merge pull request #20975 from JuliaLang/tb/align_asgn
Use proper alignment when copying data to a variable.
2 parents 64409a0 + 8880d96 commit 1820efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3850,7 +3850,7 @@ static void emit_assignment(jl_value_t *l, jl_value_t *r, jl_codectx_t *ctx)
38503850
builder.CreateMemCpy(vi.value.V,
38513851
data_pointer(rval_info, ctx, T_pint8),
38523852
copy_bytes,
3853-
/*TODO: min_align*/1,
3853+
((jl_datatype_t*)rval_info.typ)->layout->alignment,
38543854
vi.isVolatile,
38553855
tbaa);
38563856
}

0 commit comments

Comments
 (0)