mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
temporary fix for llvm wasm argument passing
This commit is contained in:
parent
edefbe5b6b
commit
fd7a7ba1e6
1 changed files with 4 additions and 1 deletions
|
@ -73,7 +73,10 @@ impl TargetInfo {
|
||||||
// This is a reasonable default for most architectures. We want to pass large values by
|
// This is a reasonable default for most architectures. We want to pass large values by
|
||||||
// reference because it's more efficient than copying them around on the stack, and puts
|
// reference because it's more efficient than copying them around on the stack, and puts
|
||||||
// less pressure on CPU registers.
|
// less pressure on CPU registers.
|
||||||
self.ptr_size() * 4
|
|
||||||
|
// TODO: change this back to `self.ptr_size() * 4`. We make some assumptions about how
|
||||||
|
// return valus are passed somewhere that make that not quite work for the llvm wasm backend.
|
||||||
|
8 * 4
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const fn ptr_alignment_bytes(&self) -> usize {
|
pub const fn ptr_alignment_bytes(&self) -> usize {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue