@@ -307,16 +307,16 @@ fn gen_call_handling<'ll>(
307307 // %6 = alloca %struct.__tgt_bin_desc, align 8
308308 unsafe { llvm:: LLVMRustPositionBuilderPastAllocas ( builder. llbuilder , main_fn) } ;
309309
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" ) ;
311311
312312 let ty = cx. type_array ( cx. type_ptr ( ) , num_args) ;
313313 // 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" ) ;
315315 // 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" ) ;
317317 // These represent the sizes in bytes, e.g. the entry for `&[f64; 16]` will be 8*16.
318318 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" ) ;
320320 // Now we allocate once per function param, a copy to be passed to one of our maps.
321321 let mut vals = vec ! [ ] ;
322322 let mut geps = vec ! [ ] ;
0 commit comments