@@ -307,16 +307,16 @@ fn gen_call_handling<'ll>(
307
307
// %6 = alloca %struct.__tgt_bin_desc, align 8
308
308
unsafe { llvm:: LLVMRustPositionBuilderPastAllocas ( builder. llbuilder , main_fn) } ;
309
309
310
- let tgt_bin_desc_alloca = builder. my_alloca2 ( tgt_bin_desc, Align :: EIGHT , "EmptyDesc" ) ;
310
+ let tgt_bin_desc_alloca = builder. direct_alloca ( tgt_bin_desc, Align :: EIGHT , "EmptyDesc" ) ;
311
311
312
312
let ty = cx. type_array ( cx. type_ptr ( ) , num_args) ;
313
313
// Baseptr are just the input pointer to the kernel, stored in a local alloca
314
- let a1 = builder. my_alloca2 ( ty, Align :: EIGHT , ".offload_baseptrs" ) ;
314
+ let a1 = builder. direct_alloca ( ty, Align :: EIGHT , ".offload_baseptrs" ) ;
315
315
// Ptrs are the result of a gep into the baseptr, at least for our trivial types.
316
- let a2 = builder. my_alloca2 ( ty, Align :: EIGHT , ".offload_ptrs" ) ;
316
+ let a2 = builder. direct_alloca ( ty, Align :: EIGHT , ".offload_ptrs" ) ;
317
317
// These represent the sizes in bytes, e.g. the entry for `&[f64; 16]` will be 8*16.
318
318
let ty2 = cx. type_array ( cx. type_i64 ( ) , num_args) ;
319
- let a4 = builder. my_alloca2 ( ty2, Align :: EIGHT , ".offload_sizes" ) ;
319
+ let a4 = builder. direct_alloca ( ty2, Align :: EIGHT , ".offload_sizes" ) ;
320
320
// Now we allocate once per function param, a copy to be passed to one of our maps.
321
321
let mut vals = vec ! [ ] ;
322
322
let mut geps = vec ! [ ] ;
0 commit comments