Move jump tables to the DataFlowGraph (#5745)
Move the storage for jump tables off of FunctionStencil and onto DataFlowGraph. This change is in service of #5731, making it easier to access the jump table data in the context of helpers like inst_values.
This commit is contained in:
@@ -199,7 +199,7 @@ pub(crate) fn visit_block_succs<F: FnMut(Inst, Block, bool)>(
|
||||
// so it is not part of the table.
|
||||
visit(inst, *dest, false);
|
||||
|
||||
for &dest in f.jump_tables[*table].as_slice() {
|
||||
for &dest in f.stencil.dfg.jump_tables[*table].as_slice() {
|
||||
visit(inst, dest, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user