|
@@ -27,7 +27,7 @@ let rec blockify_ast e =
|
|
| TFunction tf ->
|
|
| TFunction tf ->
|
|
{e with eexpr = TFunction {tf with tf_expr = mk_block (blockify_ast tf.tf_expr)}}
|
|
{e with eexpr = TFunction {tf with tf_expr = mk_block (blockify_ast tf.tf_expr)}}
|
|
| TTry(e1,cl) ->
|
|
| TTry(e1,cl) ->
|
|
- {e with eexpr = TTry(blockify_ast e1,List.map (fun (v,e) -> v,mk_block (blockify_ast e)) cl)}
|
|
|
|
|
|
+ {e with eexpr = TTry(mk_block (blockify_ast e1),List.map (fun (v,e) -> v,mk_block (blockify_ast e)) cl)}
|
|
| TSwitch(e1,cases,def) ->
|
|
| TSwitch(e1,cases,def) ->
|
|
let e1 = blockify_ast e1 in
|
|
let e1 = blockify_ast e1 in
|
|
let cases = List.map (fun (el,e) ->
|
|
let cases = List.map (fun (el,e) ->
|