Skip to content

Commit

Permalink
[fix] compiler, renaming: ObjectOpaMapToIdent should save only the (p…
Browse files Browse the repository at this point in the history
…ackage) exported ident
  • Loading branch information
BourgerieQuentin committed Jan 26, 2012
1 parent cadf7ec commit 57f483c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions passes/surfaceAstRenaming.ml
Expand Up @@ -1819,9 +1819,13 @@ let save_env env =
(* only saving the local maptoident for the stdlib packages *) (* only saving the local maptoident for the stdlib packages *)
env.maptoident_val, env.maptoident_typ env.maptoident_val, env.maptoident_typ
in in
ObjectOpaMapToIdent.save (val_,typ);
OpaMapToIdent.set_val_map val_; OpaMapToIdent.set_val_map val_;
OpaMapToIdent.set_typ_map typ OpaMapToIdent.set_typ_map typ;
let val_ =
let filter i = is_exported i all_env.f.fglobal in
StringMap.filter_val filter val_
in
ObjectOpaMapToIdent.save (val_,typ)


let load_expr_env all_env map = let load_expr_env all_env map =
let tnames = let tnames =
Expand Down

0 comments on commit 57f483c

Please sign in to comment.