mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 14:25:32 +00:00
Fix Operator::Br.
This commit is contained in:
parent
4451a0f35c
commit
1179b8a20f
@ -1276,11 +1276,11 @@ impl FunctionCodeGenerator for X64FunctionCode {
|
|||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
};
|
};
|
||||||
let released: Vec<Location> = self.value_stack.drain(frame.value_stack_depth..)
|
let released: Vec<Location> = self.value_stack[frame.value_stack_depth..].iter()
|
||||||
.filter(|&(_, lot)| lot == LocalOrTemp::Temp)
|
.filter(|&&(_, lot)| lot == LocalOrTemp::Temp)
|
||||||
.map(|(x, _)| x)
|
.map(|&(x, _)| x)
|
||||||
.collect();
|
.collect();
|
||||||
self.machine.release_locations(a, &released);
|
self.machine.release_locations_keep_state(a, &released);
|
||||||
a.emit_jmp(Condition::None, frame.label);
|
a.emit_jmp(Condition::None, frame.label);
|
||||||
self.unreachable_depth = 1;
|
self.unreachable_depth = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user