Use CursorBase utility functions to reduce repositioning clutter.

This commit is contained in:
Dan Gohman
2017-09-20 06:58:45 -07:00
parent 144d39a53d
commit b888894fbb
5 changed files with 22 additions and 9 deletions

View File

@@ -235,8 +235,7 @@ fn split_value(
//
// Note that it is safe to move `pos` here since `reuse` was set above, so we don't
// need to insert a split instruction before returning.
pos.goto_top(ebb);
pos.next_inst();
pos.goto_first_inst(ebb);
dfg.ins(pos).with_result(value).Binary(
concat,
split_type,