Make sure we double back after legalizing an instruction.
The other legalizer cases have a continue after setting the position to double back, while this one didn't. Make sure that we do, in case another legalizer block is added after this one.
This commit is contained in:
committed by
Jakob Stoklund Olesen
parent
551a91178a
commit
b13cd2321c
@@ -91,6 +91,7 @@ pub fn legalize_function(func: &mut Function, cfg: &mut ControlFlowGraph, isa: &
|
|||||||
// unsound. Should we attempt to detect that?
|
// unsound. Should we attempt to detect that?
|
||||||
if changed {
|
if changed {
|
||||||
pos.set_position(prev_pos);
|
pos.set_position(prev_pos);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user