Skip to content

Commit 92a0cc5

Browse files
vouillonhhugo
authored andcommitted
Compile exception handlers starting from an unkown location
There is some code at the beginnning of exception handlers for which we have no debugging information.
1 parent 6cc0a44 commit 92a0cc5

File tree

2 files changed

+153
-186
lines changed

2 files changed

+153
-186
lines changed

compiler/lib/generate.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ and compile_conditional st queue ~fall_through loc last scope_stack : _ * _ =
17821782
| _ ->
17831783
let handler_var = Code.Var.fork x in
17841784
( handler_var
1785-
, (J.variable_declaration [ J.V x, (wrap_exn handler_var, J.N) ], J.N)
1785+
, (J.variable_declaration [ J.V x, (wrap_exn handler_var, J.U) ], J.N)
17861786
:: handler )
17871787
in
17881788

0 commit comments

Comments
 (0)