Skip to content
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions src/parcel_snoopi_deep.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ function suggest(itrig::InferenceTrigger)
# It's not clear that the following is useful
tt = Base.unwrap_unionall(itrig.callerframes[end].linfo.specTypes)::DataType
cts = Base.code_typed_by_type(tt; debuginfo=:source)
if length(cts) == 1 && cts[1][1].inlineable
if length(cts) == 1 && (cts[1][1]::CodeInfo).inlineable
push!(s.categories, CallerInlineable)
end
end
Expand All @@ -1288,7 +1288,7 @@ function suggest(itrig::InferenceTrigger)
push!(s.categories, CallerVararg)
end
maybec = false
for (ct, rt) in cts
for (ct::CodeInfo, _) in cts
# Check for Core.Box
for typlist in (ct.slottypes, ct.ssavaluetypes)
for typ in typlist
Expand All @@ -1305,7 +1305,7 @@ function suggest(itrig::InferenceTrigger)
stmt = ct.code[stmtidx]
if isa(stmt, Expr)
if stmt.head === :invoke
mi = stmt.args[1]
mi = stmt.args[1]::MethodInstance
if mi == MethodInstance(itrig.node)
if mi.def.isva
push!(s.categories, InvokedCalleeVararg)
Expand Down