Skip to content

Commit

Permalink
Fix first in location synthesizing
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Feb 8, 2024
1 parent d2760ba commit 0ae22a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontc/cabs2cil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ module BlockChunk =
in
(* must mutate stmts in order to not break refs (for gotos) *)
let rec doStmt ~first s: unit =
let doLoc = if first then doLoc else fun x -> x in
let doLoc = if first then fun x -> x else doLoc in
s.skind <- match s.skind with
| Instr xs -> Instr (doInstrs ~first xs)
| Return (e, loc) -> Return (e, doLoc loc)
Expand Down

0 comments on commit 0ae22a5

Please sign in to comment.