Skip to content

Commit

Permalink
fix debug typo in "add missing invoke edge for nospecialize targets (#…
Browse files Browse the repository at this point in the history
…51036)" (#51153)

Causes `matches` to get replaced with `MethodMatch` instead, which then
later will fail to match with the expected value.

Fixes #51146

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
(cherry picked from commit da86735)
  • Loading branch information
vtjnash authored and nalimilan committed Nov 5, 2023
1 parent e88ceda commit e509c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/staticdata_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static void jl_collect_edges(jl_array_t *edges, jl_array_t *ext_targets, jl_arra
#ifndef NDEBUG
jl_methtable_t *mt = jl_method_get_table(m);
if ((jl_value_t*)mt != jl_nothing) {
matches = jl_gf_invoke_lookup_worlds(invokeTypes, (jl_value_t*)mt, world, &min_valid, &max_valid);
jl_value_t *matches = jl_gf_invoke_lookup_worlds(invokeTypes, (jl_value_t*)mt, world, &min_valid, &max_valid);
if (matches != jl_nothing) {
assert(m == ((jl_method_match_t*)matches)->method);
}
Expand Down

0 comments on commit e509c33

Please sign in to comment.