summaryrefslogtreecommitdiff
path: root/compiler/LlbcAstUtils.ml
diff options
context:
space:
mode:
authorNadrieril2024-06-24 11:10:28 +0200
committerNadrieril2024-06-24 13:53:31 +0200
commit16aa66aabffeaaebc03c264b89387f010750dac3 (patch)
tree141566558cff2e1e496e32691be1dc843fc58da8 /compiler/LlbcAstUtils.ml
parent25e294f859d7899ee45e44f21d710b33d610942e (diff)
Update charon
Diffstat (limited to '')
-rw-r--r--compiler/LlbcAstUtils.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/LlbcAstUtils.ml b/compiler/LlbcAstUtils.ml
index 1053c9ab..e7b85c30 100644
--- a/compiler/LlbcAstUtils.ml
+++ b/compiler/LlbcAstUtils.ml
@@ -46,13 +46,14 @@ let crate_get_opaque_non_builtin_decls (k : crate) (filter_assumed : bool) :
(which don't have a body but must not be considered as opaque) *)
&& (match d.kind with TraitItemDecl _ -> false | _ -> true)
&& ((not filter_assumed)
- || (not (NameMatcherMap.mem ctx d.name builtin_globals_map))
- && not (NameMatcherMap.mem ctx d.name (builtin_funs_map ())))
+ || (not (NameMatcherMap.mem ctx d.item_meta.name builtin_globals_map))
+ && not (NameMatcherMap.mem ctx d.item_meta.name (builtin_funs_map ()))
+ )
in
let is_opaque_type (d : type_decl) : bool =
d.kind = Opaque
&& ((not filter_assumed)
- || not (NameMatcherMap.mem ctx d.name (builtin_types_map ())))
+ || not (NameMatcherMap.mem ctx d.item_meta.name (builtin_types_map ())))
in
(* Note that by checking the function bodies we also the globals *)
( List.filter is_opaque_type (TypeDeclId.Map.values k.type_decls),