Skip to content

Commit

Permalink
Update charon
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Nov 18, 2024
1 parent 3b135a9 commit 62b4b54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/AstOfLlbc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ let decl_of_id (env : env) (id : C.any_decl_id) : K.decl option =
match decl with
| None -> None
| Some decl -> (
let { C.def_id; signature; body; is_global_decl_body; item_meta; kind; _ } = decl in
let { C.def_id; signature; body; item_meta; kind; _ } = decl in
let env = { env with generic_params = signature.generics } in
L.log "AstOfLlbc" "Visiting %sfunction: %s\n%s"
(if body = None then
Expand All @@ -1668,7 +1668,7 @@ let decl_of_id (env : env) (id : C.any_decl_id) : K.decl option =
let { K.n_cgs; n }, t = typ_of_signature env signature in
Some (K.DExternal (None, [], n_cgs, n, name, t, []))
| Some { locals; body; _ }, _ ->
if is_global_decl_body then
if signature.is_global_initializer then
None
else
let env = push_cg_binders env signature.C.generics.const_generics in
Expand Down

0 comments on commit 62b4b54

Please sign in to comment.