Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal fix for change in CostCallInfo #137

Merged
merged 2 commits into from
Mar 12, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,15 @@ function find_callsites(CI::Union{Core.CodeInfo, IRCode}, stmt_info::Union{Vecto
# we ignore any implicit iterate calls.
return process_info(info.call)
elseif isa(info, ConstCallInfo)
result = info.result
return [ConstPropCallInfo(MICallInfo(result.linfo, rt), result)]
if length(info.results) == 1
result = info.results[1]
@assert length(info.results) == 1
return [ConstPropCallInfo(MICallInfo(result.linfo, rt), result)]
else
vcat(process_info(info.call),
map(result->ConstPropCallInfo(MICallInfo(result.linfo, rt), result),
filter(!isnothing, info.results)))
end
elseif isdefined(Compiler, :OpaqueClosureCallInfo) && isa(info, Compiler.OpaqueClosureCallInfo)
return [OCCallInfo(Core.Compiler.specialize_method(info.match), rt)]
elseif isdefined(Compiler, :OpaqueClosureCreateInfo) && isa(info, Compiler.OpaqueClosureCreateInfo)
Expand Down