Remove entries for tables with no elements
This commit is contained in:
@@ -11,6 +11,10 @@ struct Visit {
|
||||
|
||||
impl Visitor for Visit {
|
||||
fn visit_br_table(&mut self, table: &BrTable) {
|
||||
if table.data().is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
let id = table as *const _ as usize;
|
||||
let len = self.id_map.len() + 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user