Skip to content

Commit 22586aa

Browse files
authored
Merge pull request #129 from jrevels/vc/edges
Set edges (fix 265!)
2 parents cebd9f1 + 01dd1e6 commit 22586aa

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+
@static if VERSION >= v"1.3.0-DEV.379"
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)