Wrap opaque types in the repl with the appropriate opaque wrapper

Closes #3504
This commit is contained in:
Ayaz Hafiz 2022-07-13 17:45:13 -04:00
parent cb25bf0f48
commit 9b7950f765
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 30 additions and 8 deletions

View file

@ -395,6 +395,8 @@ fn gen_and_eval_llvm<'a>(
}
};
let interns = loaded.interns.clone();
let (lib, main_fn_name, subs) =
mono_module_to_dylib(&arena, target, loaded, opt_level).expect("we produce a valid Dylib");
@ -407,6 +409,7 @@ fn gen_and_eval_llvm<'a>(
main_fn_layout,
&content,
&subs,
&interns,
target_info,
);