mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
load literal symbols when inserting a jump
This commit is contained in:
parent
aa54033dd2
commit
a7aa9530b6
3 changed files with 5 additions and 4 deletions
|
@ -1166,9 +1166,9 @@ impl<
|
|||
Some(storages) => storages,
|
||||
None => internal_error!("Jump: unknown point specified to jump to: {:?}", id),
|
||||
};
|
||||
for ((sym, layout), wanted_storage) in
|
||||
args.iter().zip(arg_layouts).zip(param_storage.iter())
|
||||
{
|
||||
|
||||
let it = args.iter().zip(arg_layouts).zip(param_storage.iter());
|
||||
for ((sym, layout), wanted_storage) in it {
|
||||
// Note: it is possible that the storage we want to move to is in use by one of the args we want to pass.
|
||||
if self.get_storage_for_sym(sym) == wanted_storage {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue