diff options
| author | Patrick Walton <[email protected]> | 2010-08-27 11:35:50 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-08-27 11:46:59 -0700 |
| commit | 1c0c242d0a7418ed4213c77b270e3f355b3cd484 (patch) | |
| tree | 6159f13be612fb64db627afb00bc3c66e7b8ddf7 /src | |
| parent | Comment out hashmap tests exercising maps with str as key or value type, as t... (diff) | |
| download | rust-1c0c242d0a7418ed4213c77b270e3f355b3cd484.tar.xz rust-1c0c242d0a7418ed4213c77b270e3f355b3cd484.zip | |
Zero-length tuples can show up in tag types. Don't forbid them when reading in the DWARF.
Diffstat (limited to 'src')
| -rw-r--r-- | src/boot/me/dwarf.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/me/dwarf.ml b/src/boot/me/dwarf.ml index 5137ae12..75b149a8 100644 --- a/src/boot/me/dwarf.ml +++ b/src/boot/me/dwarf.ml @@ -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 |