mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
Fix bug updating phi nodes when branching up.
This commit is contained in:
@@ -1622,7 +1622,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
|||||||
// For each result of the block we're branching to,
|
// For each result of the block we're branching to,
|
||||||
// pop a value off the value stack and load it into
|
// pop a value off the value stack and load it into
|
||||||
// the corresponding phi.
|
// the corresponding phi.
|
||||||
for (phi, value) in frame.phis().iter().zip(values) {
|
for (phi, value) in phis.iter().zip(values) {
|
||||||
phi.add_incoming(&[(&value, current_block)]);
|
phi.add_incoming(&[(&value, current_block)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user