aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-08-27 11:35:50 -0700
committerPatrick Walton <[email protected]>2010-08-27 11:46:59 -0700
commit1c0c242d0a7418ed4213c77b270e3f355b3cd484 (patch)
tree6159f13be612fb64db627afb00bc3c66e7b8ddf7
parentComment out hashmap tests exercising maps with str as key or value type, as t... (diff)
downloadrust-1c0c242d0a7418ed4213c77b270e3f355b3cd484.tar.xz
rust-1c0c242d0a7418ed4213c77b270e3f355b3cd484.zip
Zero-length tuples can show up in tag types. Don't forbid them when reading in the DWARF.
-rw-r--r--src/boot/me/dwarf.ml4
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