Skip to content

Commit

Permalink
Fix non-first initializer having non-synthetic location
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Feb 15, 2024
1 parent 8a6d359 commit 5eda904
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontc/cabs2cil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5975,15 +5975,15 @@ and doDecl (isglobal: bool) : A.definition -> chunk = function
acc
end else
match spec_res with
| Some spec_res -> acc @@ SynthetizeLoc.doChunkTail (createLocal spec_res name)
| None -> acc @@ SynthetizeLoc.doChunkTail (createAutoLocal name)
| Some spec_res -> acc @@ createLocal spec_res name
| None -> acc @@ createAutoLocal name
in
let res = List.fold_left doOneDeclarator empty nl in
(*
ignore (E.log "after doDecl %a: res=%a\n"
d_loc !currentLoc d_chunk res);
*)
res
SynthetizeLoc.doChunkTail res



Expand Down

0 comments on commit 5eda904

Please sign in to comment.