Skip to content

Commit

Permalink
Pass access as a variable instead of destructing the record
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Sep 15, 2023
1 parent 929b658 commit 60952d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analyses/raceAnalysis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ struct
| _ ->
()

let side_access ctx Access.A.{conf; kind; node; exp; acc} ((memoroot, offset) as memo) =
let side_access ctx acc ((memoroot, offset) as memo) =
if !AnalysisState.should_warn then
ctx.sideg (V.access memoroot) (G.create_access (OffsetTrie.singleton offset (`Lifted (Access.AS.singleton {conf; kind; node; exp; acc}))));
ctx.sideg (V.access memoroot) (G.create_access (OffsetTrie.singleton offset (`Lifted (Access.AS.singleton acc))));
side_vars ctx memo

(** Side-effect empty access set for prefix-type_suffix race checking. *)
Expand Down

0 comments on commit 60952d9

Please sign in to comment.