mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
refactor
This commit is contained in:
parent
b29a029a33
commit
c7920b2a24
1 changed files with 4 additions and 3 deletions
|
@ -6758,10 +6758,11 @@ fn call_by_name_module_thunk<'a>(
|
||||||
let inner_layout = *ret_layout;
|
let inner_layout = *ret_layout;
|
||||||
|
|
||||||
// If we've already specialized this one, no further work is needed.
|
// If we've already specialized this one, no further work is needed.
|
||||||
if procs
|
let already_specialized = procs
|
||||||
.specialized
|
.specialized
|
||||||
.contains_key(&(proc_name, top_level_layout))
|
.contains_key(&(proc_name, top_level_layout));
|
||||||
{
|
|
||||||
|
if already_specialized {
|
||||||
force_thunk(env, proc_name, inner_layout, assigned, hole)
|
force_thunk(env, proc_name, inner_layout, assigned, hole)
|
||||||
} else {
|
} else {
|
||||||
let pending = PendingSpecialization::from_var(env.arena, env.subs, fn_var);
|
let pending = PendingSpecialization::from_var(env.arena, env.subs, fn_var);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue