From 6d99ec20b19739622224395c8b0f81b40aeb0cc5 Mon Sep 17 00:00:00 2001 From: Florian Atteneder Date: Wed, 23 Oct 2024 20:53:11 +0200 Subject: [PATCH] add assert(mt != NULL) to make gc-analyzer happy --- src/method.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/method.c b/src/method.c index 0c3b14d064b17..a0badc5b11e8d 100644 --- a/src/method.c +++ b/src/method.c @@ -1236,6 +1236,7 @@ JL_DLLEXPORT jl_method_t* jl_method_def(jl_svec_t *argdata, int32_t line = jl_linenode_line(functionloc); // TODO: derive our debug name from the syntax instead of the type + assert(mt != NULL); jl_methtable_t *kwmt = mt == jl_kwcall_mt ? jl_kwmethod_table_for(argtype) : mt; // if we have a kwcall, try to derive the name from the callee argument method table name = (kwmt ? kwmt : mt)->name;