File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -519,6 +519,9 @@ let create_switch uacc ~scrutinee ~arms =
519
519
UA. add_free_names uacc (Apply_cont. free_names action)
520
520
|> UA. notify_added ~code_size: (Code_size. apply_cont action)
521
521
in
522
+ (* The resulting [Debuginfo] on the [Apply_cont] will be arbitrarily
523
+ chosen from amongst the [Debuginfo] values on the arms, but this seems
524
+ fine. *)
522
525
RE. create_apply_cont action, uacc
523
526
in
524
527
match Targetint_31_63.Map. get_singleton arms with
Original file line number Diff line number Diff line change @@ -89,21 +89,16 @@ include Container_types.Make (struct
89
89
90
90
let hash _ = Misc. fatal_error " Not yet implemented"
91
91
92
- (* CR mshinwell: I wonder if the Debuginfo should be excluded from this. For
93
- example at the moment we could get a Switch with two arms that go to the
94
- same place but differ only on Debuginfo. *)
95
- let compare { k = k1 ; args = args1 ; trap_action = trap_action1 ; dbg = dbg1 }
96
- { k = k2 ; args = args2 ; trap_action = trap_action2 ; dbg = dbg2 } =
92
+ let compare { k = k1 ; args = args1 ; trap_action = trap_action1 ; dbg = _ }
93
+ { k = k2 ; args = args2 ; trap_action = trap_action2 ; dbg = _ } =
97
94
let c = Continuation. compare k1 k2 in
98
95
if c <> 0
99
96
then c
100
97
else
101
98
let c = Misc.Stdlib.List. compare Simple. compare args1 args2 in
102
99
if c <> 0
103
100
then c
104
- else
105
- let c = Option. compare Trap_action. compare trap_action1 trap_action2 in
106
- if c <> 0 then c else Debuginfo. compare dbg1 dbg2
101
+ else Option. compare Trap_action. compare trap_action1 trap_action2
107
102
108
103
let equal t1 t2 = compare t1 t2 = 0
109
104
end )
Original file line number Diff line number Diff line change @@ -64,4 +64,5 @@ val clear_trap_action : t -> t
64
64
65
65
val to_one_arg_without_trap_action : t -> Simple .t option
66
66
67
+ (* * Note that [compare] ignores the [Debuginfo.t]. *)
67
68
include Container_types. S with type t := t
You can’t perform that action at this time.
0 commit comments