File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ module Dominance = struct
204
204
end
205
205
206
206
module Lists : S with type out := string list = struct
207
- let f = Map. map ~f: String. Set. to_list
207
+ let f = Map. map ~f: Set. to_list
208
208
let dominators ?strict = Fn. compose f (Sets. dominators ?strict)
209
209
let dominated ?strict = Fn. compose f (Sets. dominated ?strict)
210
210
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ let to_json =
236
236
`Assoc
237
237
[
238
238
(" op" , `String " ret" );
239
- (" args" , Option. value_map arg ~default: `Null ~f: (fun arg -> `List [ `String arg ]));
239
+ (" args" , Option. value_map arg ~default: ( `List [] ) ~f: (fun arg -> `List [ `String arg ]));
240
240
]
241
241
| Print args ->
242
242
`Assoc [ (" op" , `String " print" ); (" args" , `List (List. map args ~f: (fun arg -> `String arg))) ]
@@ -257,5 +257,5 @@ let to_json =
257
257
| Alloc (dest , arg ) -> build_op ~op: " alloc" ~args: [ arg ] ~dest ()
258
258
| Free arg -> build_op ~op: " free" ~args: [ arg ] ()
259
259
| Load (dest , arg ) -> build_op ~op: " load" ~args: [ arg ] ~dest ()
260
- | Store (arg1 , arg2 ) -> build_op ~op: " load " ~args: [ arg1; arg2 ] ()
260
+ | Store (arg1 , arg2 ) -> build_op ~op: " store " ~args: [ arg1; arg2 ] ()
261
261
| PtrAdd (dest , arg1 , arg2 ) -> build_op ~op: " ptradd" ~args: [ arg1; arg2 ] ~dest ()
You can’t perform that action at this time.
0 commit comments