Source

ocaml / bytecomp / translmod.ml

Diff from to

File bytecomp/translmod.ml

 
 let rec transl_module cc rootpath mexp =
   match mexp.mod_desc with
-    Tmod_ident (path,_) ->
+  | Tmod_ident _ when Mtype.no_code_needed mexp.mod_env mexp.mod_type ->
+      Lconst (Const_pointer 0)
+  | Tmod_ident (path,_) ->
       apply_coercion cc (transl_path path)
   | Tmod_structure str ->
       transl_struct [] cc rootpath str