Skip to content

Commit

Permalink
Silence a warning on Julia 1.11 (#111)
Browse files Browse the repository at this point in the history
Fixes #110
  • Loading branch information
timholy authored Jul 17, 2024
1 parent 4ace972 commit dc7cc3a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/signatures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,15 @@ function set_to_running_name!(@nospecialize(recurse), replacements, frame, metho
stmt = pc_expr(frame, pc)
end
@assert ismethod1(stmt)
cname, _pc, _ = get_running_name(recurse, frame, pc+1, callee, get(replacements, caller, caller))
cname, _pc, _ = try
get_running_name(recurse, frame, pc+1, callee, get(replacements, caller, caller))
catch err
if isa(err, UndefVarError)
# The function may not be defined, in which case there is nothing to replace
return replacements
end
throw(err)
end
replacements[callee] = cname
mi = methodinfos[cname] = methodinfos[callee]
src = frame.framecode.src
Expand Down

0 comments on commit dc7cc3a

Please sign in to comment.