mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Clean up Wasm calling convention code
This commit is contained in:
parent
27af5897d1
commit
88bf6bf1b7
5 changed files with 303 additions and 169 deletions
|
@ -118,6 +118,9 @@ pub fn copy_memory(code_builder: &mut CodeBuilder, config: CopyMemoryConfig) {
|
|||
if config.from_ptr == config.to_ptr && config.from_offset == config.to_offset {
|
||||
return;
|
||||
}
|
||||
if config.size == 0 {
|
||||
return;
|
||||
}
|
||||
|
||||
let alignment = Align::from(config.alignment_bytes);
|
||||
let mut i = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue