mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Use arch-specific interner in glue
This commit is contained in:
parent
d10893947f
commit
f07cf97128
1 changed files with 1 additions and 2 deletions
|
@ -391,14 +391,13 @@ pub fn load_types(
|
|||
let architectures = Architecture::iter();
|
||||
let mut arch_types = Vec::with_capacity(architectures.len());
|
||||
|
||||
let layout_interner = GlobalLayoutInterner::with_capacity(128, target_info);
|
||||
|
||||
for architecture in architectures {
|
||||
let mut interns = interns.clone(); // TODO there may be a way to avoid this.
|
||||
let target_info = TargetInfo {
|
||||
architecture,
|
||||
operating_system,
|
||||
};
|
||||
let layout_interner = GlobalLayoutInterner::with_capacity(128, target_info);
|
||||
let mut layout_cache = LayoutCache::new(layout_interner.fork(), target_info);
|
||||
let mut glue_procs_by_layout = MutMap::default();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue