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:
@@ -377,7 +377,7 @@ where
|
||||
table, destination, ..
|
||||
} = inst
|
||||
{
|
||||
let jt_data = &state.get_current_function().jump_tables[table];
|
||||
let jt_data = &state.get_current_function().stencil.dfg.jump_tables[table];
|
||||
|
||||
// Convert to usize to remove negative indexes from the following operations
|
||||
let jump_target = usize::try_from(arg(0)?.into_int()?)
|
||||
|
||||
Reference in New Issue
Block a user