Skip to content

Commit

Permalink
Cleanup, set default for new attribute to false
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Oct 1, 2023
1 parent dbf7fcd commit ae25165
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/frontc/cabs2cil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ let alwaysGenerateVarDecl = false
so tools building on CIL can know which variables were pulled up.
Should be disabled when printing CIL code, as compilers will warn about this attribute.
*)
let addNestedScopeAttr = ref true
let body_nest_count = ref 0
let addNestedScopeAttr = ref false

(** Indicates whether we're allowed to duplicate small chunks. *)
let allowDuplication: bool ref = ref true
Expand Down Expand Up @@ -6635,7 +6634,6 @@ and assignInit (lv: lval)

(* Now define the processors for body and statement *)
and doBody (blk: A.block) : chunk =
body_nest_count := !body_nest_count + 1;
enterScope ();
(* Rename the labels and add them to the environment *)
List.iter (fun l -> ignore (genNewLocalLabel l)) blk.blabels;
Expand All @@ -6650,7 +6648,6 @@ and doBody (blk: A.block) : chunk =
empty
blk.A.bstmts)
in
body_nest_count := !body_nest_count - 1;
exitScope ();


Expand Down

0 comments on commit ae25165

Please sign in to comment.