mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 09:19:25 +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,
|
||||
// pop a value off the value stack and load it into
|
||||
// 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)]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user