Do not make LayoutInterner mutable

This commit is contained in:
Ayaz Hafiz 2023-06-16 22:32:13 -05:00
parent c81a652aaa
commit 41597cbab7
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
12 changed files with 146 additions and 146 deletions

View file

@ -133,7 +133,7 @@ pub fn gen_from_mono_module<'a>(
// TODO make this polymorphic in the llvm functions so it can be reused for another backend.
fn gen_from_mono_module_llvm<'a>(
arena: &'a bumpalo::Bump,
mut loaded: MonomorphizedModule<'a>,
loaded: MonomorphizedModule<'a>,
roc_file_path: &Path,
target: &target_lexicon::Triple,
opt_level: OptLevel,
@ -232,7 +232,7 @@ fn gen_from_mono_module_llvm<'a>(
roc_gen_llvm::llvm::build::build_procedures(
&env,
&mut loaded.layout_interner,
&loaded.layout_interner,
opt_level,
loaded.procedures,
entry_point,