Skip to content

Commit 5eda904

Browse files
committed
Fix non-first initializer having non-synthetic location
1 parent 8a6d359 commit 5eda904

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/frontc/cabs2cil.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5975,15 +5975,15 @@ and doDecl (isglobal: bool) : A.definition -> chunk = function
59755975
acc
59765976
end else
59775977
match spec_res with
5978-
| Some spec_res -> acc @@ SynthetizeLoc.doChunkTail (createLocal spec_res name)
5979-
| None -> acc @@ SynthetizeLoc.doChunkTail (createAutoLocal name)
5978+
| Some spec_res -> acc @@ createLocal spec_res name
5979+
| None -> acc @@ createAutoLocal name
59805980
in
59815981
let res = List.fold_left doOneDeclarator empty nl in
59825982
(*
59835983
ignore (E.log "after doDecl %a: res=%a\n"
59845984
d_loc !currentLoc d_chunk res);
59855985
*)
5986-
res
5986+
SynthetizeLoc.doChunkTail res
59875987

59885988

59895989

0 commit comments

Comments
 (0)