Skip to content

Commit a8fbab9

Browse files
committed
Improve
1 parent c0e0b8e commit a8fbab9

File tree

4 files changed

+4416
-5178
lines changed

4 files changed

+4416
-5178
lines changed

compiler/lib/generate.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,11 +1237,13 @@ let rec translate_expr ctx queue loc x e level : _ * J.statement_list =
12371237
let clo = compile_closure ctx cont in
12381238
let clo =
12391239
match clo with
1240-
| (st, J.N) :: rem ->
1240+
| (st, x) :: rem ->
12411241
let loc =
1242-
match source_location ctx (Before pc) with
1243-
| J.N -> J.U
1244-
| x -> x
1242+
match x, source_location ctx (Before pc) with
1243+
| (J.U | J.N), (J.U | J.N) -> J.U
1244+
| x, (J.U | J.N) -> x
1245+
| (J.U | J.N), x -> x
1246+
| _, x -> x
12451247
in
12461248
(st, loc) :: rem
12471249
| _ -> clo

0 commit comments

Comments
 (0)