Skip to content

Commit

Permalink
Update test/irutils.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored Nov 21, 2024
1 parent 53e13da commit 1e78231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/irutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ end
# check if `x` is a statically-resolved call of a function whose name is `sym`
isinvoke(y) = @nospecialize(x) -> isinvoke(y, x)
isinvoke(sym::Symbol, @nospecialize(x)) = isinvoke(mi->mi.def.name===sym, x)
if VERSION v"1.12.0-DEV.1667"
@static if VERSION v"1.12.0-DEV.1667"
isinvoke(pred::Function, @nospecialize(x)) = isexpr(x, :invoke) && pred(x.args[1]::CodeInstance)
else
isinvoke(pred::Function, @nospecialize(x)) = isexpr(x, :invoke) && pred(x.args[1]::MethodInstance)
Expand Down

0 comments on commit 1e78231

Please sign in to comment.