File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,8 @@ let disconnect cfg_with_layout label =
43
43
(* CR-someday gyorsh: if trap handlers can be eliminated, remove this
44
44
label from block.exn of other blocks. *)
45
45
Misc. fatal_error " Removing trap handler blocks is not supported" ;
46
- let successors = C. successor_labels ~normal: true ~exn: true cfg block in
47
46
let has_predecessors = not (Label.Set. is_empty block.predecessors) in
48
- let n = Label.Set. cardinal successors in
47
+ let n = Label.Set. cardinal ( C. successor_labels ~normal: true ~exn: false cfg block) in
49
48
let has_more_than_one_successor = n > 1 in
50
49
if ! C. verbose then Printf. printf " Disconnect %d in %s\n " label cfg.fun_name;
51
50
if has_more_than_one_successor && has_predecessors then
@@ -56,6 +55,7 @@ let disconnect cfg_with_layout label =
56
55
least one predecessor"
57
56
Label. print label;
58
57
(* Update successor blocks. *)
58
+ let successors = C. successor_labels ~normal: true ~exn: true cfg block in
59
59
Label.Set. iter
60
60
(fun succ ->
61
61
let succ_block = C. get_block_exn cfg succ in
You can’t perform that action at this time.
0 commit comments