mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
`TensorLambdaArgument` uses an `llvm::MutableArrayRef` to reference the tensor values. This prevents temporary tensors from being used as an argument, due to the data of the `TensorLambdaArgument` being accessed after the destruction of the temporary. This patch changes the type of the data field of `TensorLambdaArgument` from `llvm::MutableArrayRef` to `std::vector` and causes input data to be copied in order to guarantee that all data remains available until invocation of the destructor.