Skip to content

Commit c5f1475

Browse files
committed
call add_input_arguments on finish_ir
1 parent cbff0d4 commit c5f1475

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/metal.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ function finish_ir!(@nospecialize(job::CompilerJob{MetalCompilerTarget}), mod::L
136136

137137
# add kernel metadata
138138
if job.config.kernel
139+
add_input_arguments!(job, mod, entry)
140+
entry = LLVM.functions(mod)[entry_fn]
141+
139142
entry = add_address_spaces!(job, mod, entry)
140143

141144
add_argument_metadata!(job, mod, entry)

0 commit comments

Comments
 (0)