Skip to content

Commit

Permalink
make isGlobal a named parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
FungOliver committed Jan 24, 2024
1 parent c882d85 commit 21419ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/util/richVarinfo.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
open GoblintCil

let create_var isGlobal name typ = Cilfacade.create_var @@ makeVarinfo isGlobal name typ
let create_var ~isGlobal name typ = Cilfacade.create_var @@ makeVarinfo isGlobal name typ

let single ~name typ =
let vi = lazy (create_var true name typ) in
let vi = lazy (create_var ~isGlobal:true name typ) in
fun () ->
Lazy.force vi

Expand Down Expand Up @@ -53,7 +53,7 @@ struct
try
XH.find !xh x
with Not_found ->
let vi = create_var VT.isGlobal (X.name_varinfo x) VT.varType in
let vi = create_var ~isGlobal:VT.isGlobal (X.name_varinfo x) VT.varType in
store_f x vi;
vi

Expand Down

0 comments on commit 21419ac

Please sign in to comment.