Merge remote-tracking branch 'origin/trunk' into wasm-test-wasm3

This commit is contained in:
Folkert 2022-07-10 22:46:15 +02:00
commit f7d556b0d1
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
34 changed files with 212 additions and 162 deletions

View file

@ -5480,7 +5480,7 @@ fn run_low_level<'a, 'ctx, 'env>(
let string = load_symbol(scope, &args[0]);
let result = call_bitcode_fn(env, &[string], intrinsic);
let result = call_bitcode_fn_fixing_for_convention(env, &[string], layout, intrinsic);
// zig passes the result as a packed integer sometimes, instead of a struct. So we cast
let expected_type = basic_type_from_layout(env, layout);