Skip to content

Commit feabec8

Browse files
committed
offload right number of args
1 parent b640165 commit feabec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ fn gen_call_handling<'ll>(
478478
// FIXME(offload): launch kernels
479479
let mut values = vec![];
480480
values.push((4, cx.get_const_i32(3)));
481-
values.push((4, cx.get_const_i32(3)));
481+
values.push((4, cx.get_const_i32(num_args)));
482482
values.push((8, geps.0));
483483
values.push((8, geps.1));
484484
values.push((8, geps.2));

0 commit comments

Comments
 (0)