committed by
Andrew Kelley
parent
d78968c1b5
commit
0fb2015fd3
@@ -7625,7 +7625,8 @@ pub const FuncGen = struct {
|
||||
const o = self.dg.object;
|
||||
const pl_op = self.air.instructions.items(.data)[@intFromEnum(inst)].pl_op;
|
||||
const index = pl_op.payload;
|
||||
return self.wip.callIntrinsic(.normal, .none, .@"wasm.memory.size", &.{.i32}, &.{
|
||||
const llvm_usize = try o.lowerType(Type.usize);
|
||||
return self.wip.callIntrinsic(.normal, .none, .@"wasm.memory.size", &.{llvm_usize}, &.{
|
||||
try o.builder.intValue(.i32, index),
|
||||
}, "");
|
||||
}
|
||||
@@ -7634,7 +7635,8 @@ pub const FuncGen = struct {
|
||||
const o = self.dg.object;
|
||||
const pl_op = self.air.instructions.items(.data)[@intFromEnum(inst)].pl_op;
|
||||
const index = pl_op.payload;
|
||||
return self.wip.callIntrinsic(.normal, .none, .@"wasm.memory.grow", &.{.i32}, &.{
|
||||
const llvm_isize = try o.lowerType(Type.isize);
|
||||
return self.wip.callIntrinsic(.normal, .none, .@"wasm.memory.grow", &.{llvm_isize}, &.{
|
||||
try o.builder.intValue(.i32, index), try self.resolveInst(pl_op.operand),
|
||||
}, "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user