Skip to content

Commit 2dfa233

Browse files
committed
Fix call graph analysis
This has to be coherent with the generation of calls in Generate.
1 parent 5747ac5 commit 2dfa233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/lib-wasm/call_graph_analysis.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ let block_deps ~info ~non_escaping ~ambiguous ~blocks pc =
1515
let block = Addr.Map.find pc blocks in
1616
List.iter block.body ~f:(fun i ->
1717
match i with
18-
| Let (_, Apply { f; _ }) -> (
18+
| Let (_, Apply { f; exact; _ }) -> (
1919
match get_approx info f with
2020
| Top -> ()
2121
| Values { known; others } ->
22-
if others || Var.Set.cardinal known > 1
22+
if (not exact) || others || Var.Set.cardinal known > 1
2323
then Var.Set.iter (fun x -> Var.Hashtbl.replace ambiguous x ()) known;
2424
if debug ()
2525
then

0 commit comments

Comments
 (0)