From 0e7eed85b558c03da7e223c0a36627a9328c3484 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Sat, 2 Sep 2023 22:12:28 -0400 Subject: [PATCH] fix debug typo in "add missing invoke edge for nospecialize targets (#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 (cherry picked from commit da86735259702850ee7a66c58021c1d6e0ad259e) --- src/staticdata_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/staticdata_utils.c b/src/staticdata_utils.c index ed80a1f6278f4..a4cbc3fd5ebc4 100644 --- a/src/staticdata_utils.c +++ b/src/staticdata_utils.c @@ -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); }