From 174cee9b11d1d18cea1fdd1e2158831a9d365cf1 Mon Sep 17 00:00:00 2001 From: David Mak Date: Thu, 15 Aug 2024 13:15:53 +0800 Subject: [PATCH] [artiq] WIP - Alignment Fix RPC of ndarrays to host --- 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 4f16acf9..f5fbfb73 100644 --- a/nac3artiq/src/codegen.rs +++ b/nac3artiq/src/codegen.rs @@ -483,7 +483,7 @@ fn format_rpc_arg<'ctx>( let buffer_size = ctx.builder.build_int_add(dims_buf_sz, llvm_pdata_sizeof, "").unwrap(); - let buffer = ctx.builder.build_array_alloca(llvm_i8, buffer_size, "rpc.arg").unwrap(); + let buffer = ctx.builder.build_array_alloca(llvm_pi8, buffer_size, "rpc.arg").unwrap(); let buffer = ArraySliceValue::from_ptr_val(buffer, buffer_size, Some("rpc.arg")); call_memcpy_generic(