Skip to content

Commit 8a6d359

Browse files
committed
Use same statement location for all initializer statements
1 parent da9e00f commit 8a6d359

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/frontc/cabs2cil.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5953,9 +5953,7 @@ and doDecl (isglobal: bool) : A.definition -> chunk = function
59535953
(* Do all the variables and concatenate the resulting statements *)
59545954
let doOneDeclarator (acc: chunk) (name: init_name) =
59555955
let (n,ndt,a,l),_ = name in
5956-
currentLoc := convLoc l;
59575956
currentExpLoc := convLoc l; (* eloc for local initializer assignment instruction *)
5958-
(* Do the specifiers exactly once *)
59595957
if isglobal then begin
59605958
let spec_res = match spec_res with Some s -> s | _ -> failwith "Option.get" in
59615959
let bt,_,_,attrs = spec_res in

0 commit comments

Comments
 (0)