File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 6443179bcab63c440203a321297d32f5b2a2f8e0
2
+ refs/heads/master: d7cbeba731716f176f4c116cfe92f3ec246e1396
Original file line number Diff line number Diff line change @@ -2425,7 +2425,7 @@ and referent_type
2425
2425
Some parent_tags
2426
2426
when boxed
2427
2427
&& parent_tags <> []
2428
- && List. mem ttag parent_tags
2428
+ && (list_count ttag parent_tags) > 1
2429
2429
&& is_back_edge ttag (List. hd parent_tags) ->
2430
2430
Il. StructTy [| word; Il. OpaqueTy |]
2431
2431
| _ -> tag ttag
Original file line number Diff line number Diff line change @@ -380,6 +380,13 @@ let rec list_drop n ls =
380
380
else list_drop (n-1 ) (List. tl ls)
381
381
;;
382
382
383
+ let rec list_count elem lst =
384
+ match lst with
385
+ [] -> 0
386
+ | h ::t when h = elem -> 1 + (list_count elem t)
387
+ | _ ::t -> list_count elem t
388
+ ;;
389
+
383
390
384
391
(*
385
392
* Auxiliary pair functions.
You can’t perform that action at this time.
0 commit comments