From 00f23b179490bb487fc46c5af2fbe1ddcd71a36e Mon Sep 17 00:00:00 2001 From: David Mak Date: Tue, 13 Aug 2024 17:34:35 +0800 Subject: [PATCH] WIP --- nac3artiq/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3artiq/src/codegen.rs b/nac3artiq/src/codegen.rs index 1ac9d407..375ce87b 100644 --- a/nac3artiq/src/codegen.rs +++ b/nac3artiq/src/codegen.rs @@ -582,7 +582,7 @@ fn rpc_codegen_callback_fn<'ctx>( ); let pbuffer_data_begin = - unsafe { buffer.ptr_offset_unchecked(ctx, generator, &dims_buf_sz, None) }; + unsafe { buffer.ptr_offset(ctx, generator, &dims_buf_sz, None) }; llvm_intrinsics::call_memcpy_generic( ctx, pbuffer_data_begin,