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:
Eric Anholt
2017-04-23 11:45:12 -07:00
committed by Jakob Stoklund Olesen
parent 551a91178a
commit b13cd2321c

View File

@@ -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;
} }
} }
} }