Skip to content

Commit 86cbb60

Browse files
authored
inference: use jl_method_get_table for get_nospecializeinfer_sig (#51735)
This allows `@nospecializeinfer` to be functional for `@overlay`ed methods, making it more aligned with `get_compileable_sig` too.
1 parent 4d2d849 commit 86cbb60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/compiler/utilities.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ end
164164

165165
function get_nospecializeinfer_sig(method::Method, @nospecialize(atype), sparams::SimpleVector)
166166
isa(atype, DataType) || return method.sig
167-
mt = ccall(:jl_method_table_for, Any, (Any,), atype)
167+
mt = ccall(:jl_method_get_table, Any, (Any,), method)
168168
mt === nothing && return method.sig
169169
return ccall(:jl_normalize_to_compilable_sig, Any, (Any, Any, Any, Any, Cint),
170170
mt, atype, sparams, method, #=int return_if_compileable=#0)

0 commit comments

Comments
 (0)