stable_mir::mir::visit

Function terminator_location

Source
pub fn terminator_location(body: &Body, bb_idx: &BasicBlockIdx) -> Location
Expand description

Location of the terminator for a given basic block. Assumes that bb_idx is valid for a given body.