mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-25 01:39:26 +00:00
Turn VMMemoryDefinition::current_length into a u32.
The current wasm spec limits the size to 32-bits, and attempting to use a larger size causes problems with compiler-cranelift.
This commit is contained in:
@ -1033,6 +1033,8 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
format!("memory {} length", memory_index.as_u32()),
|
||||
current_length.as_instruction_value().unwrap(),
|
||||
);
|
||||
let current_length =
|
||||
builder.build_int_z_extend(current_length, intrinsics.i64_ty, "");
|
||||
|
||||
builder.build_int_compare(
|
||||
IntPredicate::ULE,
|
||||
|
Reference in New Issue
Block a user