Skip to content

Commit f720db4

Browse files
committed
Add commented-out castkind debugging
1 parent 02bf2bb commit f720db4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/cil.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3425,9 +3425,12 @@ class defaultCilPrinterClass : cilPrinter = object (self)
34253425
++ text " : "
34263426
++ (self#pExpPrec level () e3)
34273427

3428-
| CastE(_,t,e) ->
3428+
| CastE(k,t,e) ->
34293429
text "("
34303430
++ self#pType None () t (* TODO: option to not print implicit casts? *)
3431+
(* ++ text "/*"
3432+
++ d_castkind () k (* convenient for debugging castkinds *)
3433+
++ text "*/" *)
34313434
++ text ")"
34323435
++ self#pExpPrec level () e
34333436

0 commit comments

Comments
 (0)