We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d39ee commit f212b8eCopy full SHA for f212b8e
crates/wasmi/src/engine/translator/func2/stack/operands.rs
@@ -270,13 +270,9 @@ impl OperandStack {
270
#[must_use]
271
fn operand_to_temp_at(&mut self, index: OperandIdx) -> StackOperand {
272
let operand = self.get_at(index);
273
- match operand {
274
- StackOperand::Temp { ty, .. } => ty,
275
- StackOperand::Immediate { val } => val.ty(),
276
- StackOperand::Local { local_index, .. } => self.locals.ty(local_index),
277
- };
+ let ty = operand.ty(&self.locals);
278
self.unlink_local(operand);
279
- self.operands[usize::from(index)] = operand;
+ self.operands[usize::from(index)] = StackOperand::Temp { ty, instr: None };
280
operand
281
}
282
0 commit comments