FIX: store value operand was missing
@@ -487,17 +487,19 @@ impl<'a> DFGBuilder {
color += 1;
}
Operator::I32Store { .. } | Operator::I64Store { .. } => {
+ let value = self.pop_operand(idx, false);
let offset = self.pop_operand(idx, false);
let idx = self.push_node(
- StackType::IndexAtCode(idx, 1),
+ StackType::IndexAtCode(idx, 2),
idx,
- vec![offset],
+ vec![offset, value],
color,
// Add type here
PrimitiveTypeInfo::Empty,
);
self.parents[offset] = idx as i32;
+ self.parents[value] = idx as i32;
color += 1;
}
// All memory loads
