mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
when doing a memcpy, don't take alignment into account
This commit is contained in:
parent
20104a1159
commit
1b29aa3e43
1 changed files with 4 additions and 3 deletions
|
@ -2536,9 +2536,10 @@ pub fn build_exp_stmt<'a, 'ctx, 'env>(
|
|||
//
|
||||
// Hence, we explicitly memcpy source to destination, and rely on
|
||||
// LLVM optimizing away any inefficiencies.
|
||||
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