Skip to content

Commit fb47158

Browse files
committed
Make first for initializer loc non-synthetic
1 parent ee64e4a commit fb47158

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontc/cabs2cil.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6769,15 +6769,15 @@ and doStatement (s : A.statement) : chunk =
67696769
| A.FOR(fc1,e2,e3,s,loc,eloc) -> begin
67706770
let loc' = convLoc loc in
67716771
let eloc' = convLoc eloc in
6772-
currentLoc := SynthetizeLoc.doLoc loc';
6772+
currentLoc := loc';
67736773
currentExpLoc := SynthetizeLoc.doLoc eloc';
67746774
enterScope (); (* Just in case we have a declaration *)
67756775
let (se1, _, _) =
67766776
match fc1 with
67776777
FC_EXP e1 -> doExp false e1 ADrop
67786778
| FC_DECL d1 -> (doDecl false d1, zero, voidType)
67796779
in
6780-
let se1 = SynthetizeLoc.doChunkHead se1 in
6780+
let se1 = SynthetizeLoc.eDoChunkHead (SynthetizeLoc.doChunkTail se1) in
67816781
let (se3, _, _) = doExp false e3 ADrop in
67826782
let se3 = SynthetizeLoc.doChunkHead se3 in
67836783
startLoop false;

0 commit comments

Comments
 (0)