Skip to content

Commit b640165

Browse files
committed
fixing smthg
1 parent 0eb20c3 commit b640165

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,11 @@ fn gen_call_handling<'ll>(
368368

369369
let v = unsafe { llvm::LLVMGetOperand(kernel_call, index as u32).unwrap() };
370370
builder.store(v, alloca, Align::EIGHT);
371-
let val = builder.load(in_ty, alloca, Align::EIGHT);
372-
let gep = builder.inbounds_gep(cx.type_f32(), val, &[i32_0]);
373-
vals.push(val);
371+
//let val = builder.load(in_ty, alloca, Align::EIGHT);
372+
//let gep = builder.inbounds_gep(cx.type_f32(), val, &[i32_0]);
373+
let gep = builder.inbounds_gep(cx.type_f32(), v, &[i32_0]);
374+
vals.push(v);
375+
//vals.push(val);
374376
geps.push(gep);
375377
}
376378

0 commit comments

Comments
 (0)