We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4926eb commit 93ef4b3Copy full SHA for 93ef4b3
library/std/src/personality/dwarf/eh.rs
@@ -131,10 +131,12 @@ unsafe fn interpret_cs_action(
131
lpad: usize,
132
) -> EHAction {
133
if cs_action_entry == 0 {
134
- // If cs_action is 0 then this is a cleanup (Drop::drop). We run these
+ // If cs_action_entry is 0 then this is a cleanup (Drop::drop). We run these
135
// for both Rust panics and foreign exceptions.
136
EHAction::Cleanup(lpad)
137
} else {
138
+ // If lpad != 0 and cs_action_entry != 0, we have to check ttype_index.
139
+ // If ttype_index == 0 under the condition, we take cleanup action.
140
let action_record = (action_table as *mut u8).offset(cs_action_entry as isize - 1);
141
let mut action_reader = DwarfReader::new(action_record);
142
let ttype_index = action_reader.read_sleb128();
0 commit comments