Skip to content

Commit

Permalink
add assert(mt != NULL) to make gc-analyzer happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder committed Oct 23, 2024
1 parent 1de3680 commit 6d99ec2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/method.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6d99ec2

Please sign in to comment.