Fix DWARF parser treating catch blocks as unconditional

Signed-off-by: Jonathan Coates <jonathan.coates@oxionics.com>
This commit is contained in:
Jonathan Coates 2024-11-19 13:35:48 +00:00 committed by Sebastien Bourdeauducq
parent 957a72d8af
commit f46e3f2509
1 changed files with 1 additions and 4 deletions

View File

@ -83,10 +83,7 @@ unsafe fn get_ttype_entry(
encoding | DW_EH_PE_pcrel,
ttype_base,
)
.map(|v| match v {
ttype_base => None,
ttype_entry => Some(ttype_entry as *const u8),
})
.map(|v| (v != ttype_base).then(|| v as *const u8))
}
pub unsafe fn find_eh_action(