Skip to content

Commit

Permalink
Remove unused function argument (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgymnich authored Nov 29, 2023
1 parent c9ee025 commit d23440c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const _kernel_instances = Dict{UInt, Any}()
else
# everything else is passed by reference, in an argument buffer
append!(ex.args, (quote
buf = encode_argument!(cce, kernel, mtlconvert($(argex), cce))
buf = encode_argument!(kernel, mtlconvert($(argex), cce))
set_buffer!(cce, buf, 0, $idx)
push!(bufs, buf)
end).args)
Expand All @@ -220,7 +220,7 @@ const _kernel_instances = Dict{UInt, Any}()
ex
end

@inline function encode_argument!(cce, kernel, arg)
@inline function encode_argument!(kernel, arg)
argtyp = typeof(arg)

# replace non-isbits arguments (they should be unused, or compilation
Expand Down

0 comments on commit d23440c

Please sign in to comment.