Skip to content

Commit

Permalink
[mono][aot] Mark clauses as dead when replacing method code with exce…
Browse files Browse the repository at this point in the history
…ption throw

In the final stages of method compilation, when trying to compute clause ranges, we were asserting because the clause bblocks haven't been reached for compilation.
  • Loading branch information
BrzVlad committed Nov 29, 2024
1 parent a9f7461 commit 95a9026
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mono/mono/mini/method-to-ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -6263,6 +6263,9 @@ method_make_alwaysthrow_typeloadfailure (MonoCompile* cfg, MonoClass* klass)
mono_link_bblock (cfg, bb, cfg->bb_exit);

cfg->disable_inline = TRUE;

for (guint i = 0; i < cfg->header->num_clauses; i++)
cfg->clause_is_dead [i] = TRUE;
}

typedef union _MonoOpcodeParameter {
Expand Down

0 comments on commit 95a9026

Please sign in to comment.