We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a6975 commit 8333e5cCopy full SHA for 8333e5c
library/std/src/personality/dwarf/eh.rs
@@ -102,6 +102,8 @@ pub unsafe fn find_eh_action(lsda: *const u8, context: &EHContext<'_>) -> Result
102
(action_table as *mut u8).offset(cs_action_entry as isize - 1);
103
let mut action_reader = DwarfReader::new(action_record);
104
let ttype_index = action_reader.read_sleb128();
105
+ // Normally, if ttype_index < 0, meaning the catch type is exception specification.
106
+ // Since we only care about if ttype_index is zero, so casting ttype_index to u64 makes sense.
107
return Ok(interpret_cs_action(ttype_index as u64, lpad));
108
}
109
0 commit comments