Skip to content

Commit

Permalink
fix: merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwfang committed Dec 23, 2024
1 parent 49d1d05 commit 0be366e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/interpreter/src/valid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,10 +594,8 @@ impl<'a, 'm> Expr<'a, 'm> {
}
If(b) => {
self.pop_check(ValType::I32)?;
let mut branch = self.branch_source();
let type_ = self.blocktype(&b)?;
branch.result = type_.results.len();
self.push_label(type_, LabelKind::If(branch))?;
let branch = self.branch_source();
self.push_label(self.blocktype(&b)?, LabelKind::If(branch))?;
}
Else => {
match core::mem::replace(&mut self.label().kind, LabelKind::Block) {
Expand Down

0 comments on commit 0be366e

Please sign in to comment.