Skip to content

Commit dbe9b64

Browse files
committed
milos review
1 parent 0423169 commit dbe9b64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mono/mono/mini/method-to-ir.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3735,6 +3735,7 @@ handle_delegate_ctor (MonoCompile *cfg, MonoClass *klass, MonoInst *target, Mono
37353735
static MonoInst*
37363736
mono_emit_cached_localloc (MonoCompile *cfg, int cache_index, int new_size)
37373737
{
3738+
g_assert (cache_index < (int)G_N_ELEMENTS (cfg->localloc_cache));
37383739
MonoCachedLocallocInfo *info = &cfg->localloc_cache [cache_index];
37393740

37403741
// Create var or update the size. All locallocs will be patched to the max size after IR code emit ends.
@@ -12378,6 +12379,7 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
1237812379
p = p->next;
1237912380
}
1238012381
g_slist_free (info->localloc_ins);
12382+
info->localloc_ins = NULL;
1238112383
}
1238212384
}
1238312385
}

0 commit comments

Comments
 (0)