Skip to content

Commit

Permalink
use callee_matches instead of is_quotenode_egal
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed May 18, 2024
1 parent d3f9ed2 commit 34f7f11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/codeedges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,10 @@ function add_inplace!(isrequired, src, edges, norequire)
function mark_if_inplace(stmt, j)
_changed = false
fname = stmt.args[1]
if is_quotenode_egal(fname, Base.push!) || is_quotenode_egal(fname, Base.pop!) || is_quotenode_egal(fname, Base.empty!) || is_quotenode_egal(fname, Base.setindex!)
if (callee_matches(fname, Base, :push!) ||
callee_matches(fname, Base, :pop!) ||
callee_matches(fname, Base, :empty!) ||
callee_matches(fname, Base, :setindex!))
_changed = !isrequired[j]
isrequired[j] = true
end
Expand Down

0 comments on commit 34f7f11

Please sign in to comment.