Move the default block to the front of the underlying jump table storage (#5770)
The new api on JumpTableData makese it easy to keep the default label first, and that shrinks the diff in #5731 a bit.
This commit is contained in:
@@ -410,7 +410,7 @@ mod test {
|
||||
pos.insert_block(bb0);
|
||||
let jt = pos
|
||||
.func
|
||||
.create_jump_table(JumpTableData::new(bb3, vec![bb1, bb2]));
|
||||
.create_jump_table(JumpTableData::new(bb3, &[bb1, bb2]));
|
||||
pos.ins().br_table(arg0, jt);
|
||||
|
||||
pos.insert_block(bb1);
|
||||
|
||||
Reference in New Issue
Block a user