Skip to content

Commit e5b0b0b

Browse files
committed
Fix parameter handling.
1 parent f528a7c commit e5b0b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function add_parameter_address_spaces!(@nospecialize(job::CompilerJob), mod::LLV
243243
arg.cc != GHOST
244244
end
245245
for arg in args
246-
byref[arg.idx] = (arg.cc == BITS_REF)
246+
byref[arg.idx] = (arg.cc == BITS_REF || arg.cc == KERNEL_STATE)
247247
end
248248

249249
function remapType(src)

0 commit comments

Comments
 (0)