Fix dropped memory grow
This commit is contained in:
parent
703e6b8e47
commit
83d3f16b42
@ -360,9 +360,10 @@ impl<'a> Transformer<'a> {
|
||||
let value = Box::new(self.living.pop().unwrap());
|
||||
|
||||
// `MemoryGrow` is an expression *but* it has side effects
|
||||
self.gen_leak_pending(&mut stat);
|
||||
self.living
|
||||
.push(Expression::MemoryGrow(MemoryGrow { memory: *i, value }));
|
||||
|
||||
self.gen_leak_pending(&mut stat);
|
||||
}
|
||||
Inst::I32Const(v) => self.push_constant(Value::I32(*v)),
|
||||
Inst::I64Const(v) => self.push_constant(Value::I64(*v)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user