Skip to content

Commit 4f694dc

Browse files
committed
Revert "Fix WAT debug output"
This reverts commit d988760.
1 parent 2620fbe commit 4f694dc

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

compiler/lib-wasm/curry.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ module Make (Target : Target_sig.S) = struct
359359
}
360360

361361
let f ~context =
362-
let context = { context with other_fields = context.other_fields } in
363362
IntMap.iter
364363
(fun arity name ->
365364
let f = apply ~context ~arity ~name in
@@ -389,6 +388,5 @@ module Make (Target : Target_sig.S) = struct
389388
(fun arity name ->
390389
let f = dummy ~context ~cps:true ~arity ~name in
391390
context.other_fields <- f :: context.other_fields)
392-
context.cps_dummy_funs;
393-
context
391+
context.cps_dummy_funs
394392
end

compiler/lib-wasm/curry.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
*)
1818

1919
module Make (_ : Target_sig.S) : sig
20-
val f : context:Code_generation.context -> Code_generation.context
20+
val f : context:Code_generation.context -> unit
2121
end

compiler/lib-wasm/generate.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ module Generate (Target : Target_sig.S) = struct
14421442
toplevel_name, js_code
14431443

14441444
let output ~context =
1445-
let context = Curry.f ~context in
1445+
Curry.f ~context;
14461446
let imports =
14471447
List.concat
14481448
(List.map

0 commit comments

Comments
 (0)