mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Store target info on layout interners
This commit is contained in:
parent
d8b2ff07f8
commit
e14a0abb99
5 changed files with 18 additions and 11 deletions
|
@ -1072,7 +1072,7 @@ impl<'a> State<'a> {
|
|||
exec_mode,
|
||||
make_specializations_pass: MakeSpecializationsPass::Pass(1),
|
||||
world_abilities: Default::default(),
|
||||
layout_interner: GlobalLayoutInterner::with_capacity(128),
|
||||
layout_interner: GlobalLayoutInterner::with_capacity(128, target_info),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3072,7 +3072,7 @@ fn update<'a>(
|
|||
}
|
||||
|
||||
let layout_interner = {
|
||||
let mut taken = GlobalLayoutInterner::with_capacity(0);
|
||||
let mut taken = GlobalLayoutInterner::with_capacity(0, state.target_info);
|
||||
std::mem::swap(&mut state.layout_interner, &mut taken);
|
||||
taken
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue