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 042418b367
commit d47f43df11

View File

@@ -91,6 +91,7 @@ pub fn legalize_function(func: &mut Function, cfg: &mut ControlFlowGraph, isa: &
// unsound. Should we attempt to detect that?
if changed {
pos.set_position(prev_pos);
continue;
}
}
}