Skip to content

Commit 9236ad2

Browse files
committed
Further attempts to convince mem_ctrl to be sane.
1 parent 50e9641 commit 9236ad2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/boot/me/transutil.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ let slot_mem_ctrl (slot:Ast.slot) : mem_ctrl =
127127
then MEM_gc
128128
else MEM_rc_struct
129129
| Ast.MODE_exterior _ ->
130-
MEM_rc_opaque
130+
if type_has_state ty
131+
then MEM_gc
132+
else MEM_rc_opaque
131133
| _ ->
132134
MEM_interior
133135
;;

0 commit comments

Comments
 (0)