Zero-length tuples can show up in tag types. Don't forbid them when reading in the DWARF.
This commit is contained in:
parent
927b2f7ef4
commit
1c0c242d0a
@ -2974,8 +2974,8 @@ let rec extract_mod_items
|
||||
else None
|
||||
end
|
||||
in
|
||||
assert ((Array.length members) > 0);
|
||||
if is_num_idx (get_name members.(0))
|
||||
if Array.length members == 0 ||
|
||||
is_num_idx (get_name members.(0))
|
||||
then
|
||||
let tys = Array.map get_referenced_ty members in
|
||||
Ast.TY_tup tys
|
||||
|
Loading…
Reference in New Issue
Block a user