temporary fix for llvm wasm argument passing

This commit is contained in:
Folkert 2023-09-15 13:15:37 +02:00
parent edefbe5b6b
commit fd7a7ba1e6
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -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 {