@@ -43,7 +43,7 @@ let make_switch n selector caselist =
43
43
List. iter (fun pos -> index.(pos) < - i) posl;
44
44
actv.(i) < - (e, dbg)
45
45
done ;
46
- Cswitch (selector, index, actv, dbg)
46
+ Cswitch (selector, index, actv, dbg, value_kind () )
47
47
48
48
let access_array base numelt size =
49
49
match numelt with
@@ -228,7 +228,8 @@ expr:
228
228
| LPAREN binaryop expr expr RPAREN { Cop ($ 2 , [$ 3 ; $ 4 ], debuginfo () ) }
229
229
| LPAREN SEQ sequence RPAREN { $ 3 }
230
230
| LPAREN IF expr expr expr RPAREN
231
- { Cifthenelse ($ 3 , debuginfo () , $ 4 , debuginfo () , $ 5 , debuginfo () ) }
231
+ { Cifthenelse ($ 3 , debuginfo () , $ 4 , debuginfo () , $ 5 , debuginfo () ,
232
+ value_kind () ) }
232
233
| LPAREN SWITCH INTCONST expr caselist RPAREN { make_switch $ 3 $ 4 $ 5 }
233
234
| LPAREN WHILE expr sequence RPAREN
234
235
{
@@ -239,21 +240,21 @@ expr:
239
240
Cconst_int (x, _) when x <> 0 -> $ 4
240
241
| _ -> Cifthenelse ($ 3 , debuginfo () , $ 4 , debuginfo () ,
241
242
(Cexit (lbl0,[] )),
242
- debuginfo () ) in
243
+ debuginfo () , value_kind () ) in
243
244
Ccatch (Nonrecursive , [lbl0, [], Ctuple [], debuginfo () ],
244
245
Ccatch (Recursive ,
245
246
[lbl1, [], Csequence (body, Cexit (lbl1, [] )), debuginfo () ],
246
- Cexit (lbl1, [] ))) }
247
+ Cexit (lbl1, [] ), value_kind () ), value_kind ( ) ) }
247
248
| LPAREN EXIT IDENT exprlist RPAREN
248
249
{ Cexit (find_label $ 3 , List. rev $ 4 ) }
249
250
| LPAREN CATCH sequence WITH catch_handlers RPAREN
250
251
{ let handlers = $ 5 in
251
252
List. iter (fun (_ , l , _ , _ ) ->
252
253
List. iter (fun (x , _ ) -> unbind_ident x) l) handlers;
253
- Ccatch (Recursive , handlers, $ 3 ) }
254
+ Ccatch (Recursive , handlers, $ 3 , value_kind () ) }
254
255
| EXIT { Cexit (0 ,[] ) }
255
256
| LPAREN TRY sequence WITH bind_ident sequence RPAREN
256
- { unbind_ident $ 5 ; Ctrywith ($ 3 , $ 5 , $ 6 , debuginfo () ) }
257
+ { unbind_ident $ 5 ; Ctrywith ($ 3 , $ 5 , $ 6 , debuginfo () , value_kind () ) }
257
258
| LPAREN VAL expr expr RPAREN
258
259
{ let open Asttypes in
259
260
Cop (Cload (Word_val , Mutable ), [access_array $ 3 $ 4 Arch. size_addr],
0 commit comments