mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
when doing a memcpy, don't take alignment into account
This commit is contained in:
parent
e94bdb0ed8
commit
786246f427
1 changed files with 4 additions and 3 deletions
|
@ -2567,9 +2567,10 @@ pub fn build_exp_stmt<'a, 'ctx, 'env>(
|
|||
if value_ptr.get_first_use().is_some() {
|
||||
value_ptr.replace_all_uses_with(destination);
|
||||
} else {
|
||||
let size = env
|
||||
.ptr_int()
|
||||
.const_int(layout.stack_size(env.target_info) as u64, false);
|
||||
let size = env.ptr_int().const_int(
|
||||
layout.stack_size_without_alignment(env.target_info) as u64,
|
||||
false,
|
||||
);
|
||||
|
||||
env.builder
|
||||
.build_memcpy(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue