[libc-commits] [libc] [libc] Move the pointer to pin off the stack to the heap (PR #74118)
Jon Chesterfield via libc-commits
libc-commits at lists.llvm.org
Fri Dec 1 09:51:09 PST 2023
================
@@ -471,7 +471,7 @@ int load(int argc, char **argv, char **envp, void *image, size_t size,
handle_error(err);
// Pin some memory we can use to obtain the address of the rpc client.
- void *rpc_client_storage = nullptr;
+ void **rpc_client_storage = new void *;
void *rpc_client_host = nullptr;
----------------
JonChesterfield wrote:
probably wrong that it used to be a void* and is now a void**, could that be why delete was a problem?
https://github.com/llvm/llvm-project/pull/74118
More information about the libc-commits
mailing list