Skip to content

Commit 0f0bfe6

Browse files
committed
set forward edge
1 parent 25cdcd8 commit 0f0bfe6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/overdub.jl

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ function reflect(@nospecialize(sigtypes::Tuple), world::UInt = typemax(UInt))
7878
code_info = Core.Compiler.retrieve_code_info(method_instance)
7979
isa(code_info, CodeInfo) || return nothing
8080
code_info = copy_code_info(code_info)
81+
if isdefined(code_info, :edges)
82+
edges = Core.MethodInstance[method_instance]
83+
@assert code_info.edges === nothing
84+
code_info.edges = edges
85+
end
8186
return Reflection(S, method, static_params, code_info)
8287
end
8388

0 commit comments

Comments
 (0)