Skip to content

Commit

Permalink
set forward edges
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jun 17, 2019
1 parent 25cdcd8 commit 01dd1e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/overdub.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ function reflect(@nospecialize(sigtypes::Tuple), world::UInt = typemax(UInt))
code_info = Core.Compiler.retrieve_code_info(method_instance)
isa(code_info, CodeInfo) || return nothing
code_info = copy_code_info(code_info)
@static if VERSION >= v"1.3.0-DEV.379"
edges = Core.MethodInstance[method_instance]
@assert code_info.edges === nothing
code_info.edges = edges
end
return Reflection(S, method, static_params, code_info)
end

Expand Down

0 comments on commit 01dd1e6

Please sign in to comment.