File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
library/std/src/personality/dwarf Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,12 @@ unsafe fn interpret_cs_action(
131
131
lpad : usize ,
132
132
) -> EHAction {
133
133
if cs_action_entry == 0 {
134
- // If cs_action is 0 then this is a cleanup (Drop::drop). We run these
134
+ // If cs_action_entry is 0 then this is a cleanup (Drop::drop). We run these
135
135
// for both Rust panics and foreign exceptions.
136
136
EHAction :: Cleanup ( lpad)
137
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.
138
140
let action_record = ( action_table as * mut u8 ) . offset ( cs_action_entry as isize - 1 ) ;
139
141
let mut action_reader = DwarfReader :: new ( action_record) ;
140
142
let ttype_index = action_reader. read_sleb128 ( ) ;
You can’t perform that action at this time.
0 commit comments