Skip to content

Commit

Permalink
Merge pull request JuliaLang#20975 from JuliaLang/tb/align_asgn
Browse files Browse the repository at this point in the history
Use proper alignment when copying data to a variable.
  • Loading branch information
StefanKarpinski authored Mar 14, 2017
2 parents 64409a0 + 8880d96 commit 1820efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3850,7 +3850,7 @@ static void emit_assignment(jl_value_t *l, jl_value_t *r, jl_codectx_t *ctx)
builder.CreateMemCpy(vi.value.V,
data_pointer(rval_info, ctx, T_pint8),
copy_bytes,
/*TODO: min_align*/1,
((jl_datatype_t*)rval_info.typ)->layout->alignment,
vi.isVolatile,
tbaa);
}
Expand Down

0 comments on commit 1820efa

Please sign in to comment.