Skip to content

Commit 78b4fc0

Browse files
committed
---
yaml --- r: 631 b: refs/heads/master c: 1fa978e h: refs/heads/master i: 629: c33f3b1 627: 3fbbb8a 623: c10870f v: v3
1 parent 797c5d8 commit 78b4fc0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: eb90be779877caa2e2d51095301f83695d77dd44
2+
refs/heads/master: 1fa978ebb9ef97640724ad92900ba49a3544c6c9

trunk/src/boot/me/trans.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,12 @@ let trans_visitor
768768
add_to vc sz;
769769
Il.Mem (based v, elt_rty)
770770
end
771-
| _ -> bug () "get_element_ptr_dyn %d on cell %s" i
772-
(cell_str mem_cell)
771+
| Il.Mem (_, Il.StructTy elts) ->
772+
bug ()
773+
"get_element_ptr dyn %d out of bounds (len %d) on cell %s"
774+
i (Array.length elts) (cell_str mem_cell)
775+
| _ ->
776+
bug () "get_element_ptr_dyn %d on cell %s" i (cell_str mem_cell)
773777
in
774778

775779
let get_element_ptr_dyn_in_current_frame

0 commit comments

Comments
 (0)