Skip to content

Commit

Permalink
fix isva
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Oct 6, 2021
1 parent c174d72 commit 69bfa21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/EscapeAnalysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@ function propagate_changes!(state::EscapeState, changes::Changes)
state.arguments[x.n] = new
anychanged |= true
end
elseif isa(x, SSAValue)
else
x = x::SSAValue
old = state.ssavalues[x.id]
new = old info
if old new
Expand Down Expand Up @@ -576,7 +577,8 @@ function escape_invoke!(args::Vector{Any}, pc::Int,
else
(linfostate, _ #=ir::IRCode=#) = cache
retinfo = state.ssavalues[pc] # escape information imposed on the call statement
nargs = Int((linfo.def::Method).nargs)
method = linfo.def::Method
nargs = Int(method.nargs)
for i in 1:length(args)
arg = args[i]
if i nargs
Expand Down

0 comments on commit 69bfa21

Please sign in to comment.