aboutsummaryrefslogtreecommitdiff
path: root/libc/startup
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-05-11 08:38:27 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-05-11 09:00:08 -0500
commit30093d6be2499995ea66b09b0c8569bf5dc3e950 (patch)
tree587b5af26250167a69d0d5afc83bdb061287f3a7 /libc/startup
parent4bc75f046018bcc81ede90d548f95da8ed14f1a9 (diff)
downloadllvm-30093d6be2499995ea66b09b0c8569bf5dc3e950.zip
llvm-30093d6be2499995ea66b09b0c8569bf5dc3e950.tar.gz
llvm-30093d6be2499995ea66b09b0c8569bf5dc3e950.tar.bz2
[libc][obvious] Fix undefined variable after name change
I forgot that we still used these variables in the loaders. Differential Revision: https://reviews.llvm.org/D150362
Diffstat (limited to 'libc/startup')
-rw-r--r--libc/startup/gpu/amdgpu/start.cpp2
-rw-r--r--libc/startup/gpu/nvptx/start.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/startup/gpu/amdgpu/start.cpp b/libc/startup/gpu/amdgpu/start.cpp
index b9f1df2..8d85fe1 100644
--- a/libc/startup/gpu/amdgpu/start.cpp
+++ b/libc/startup/gpu/amdgpu/start.cpp
@@ -41,7 +41,7 @@ extern "C" [[gnu::visibility("protected"), clang::amdgpu_kernel]] void
_begin(int argc, char **argv, char **env, void *rpc_shared_buffer) {
// We need to set up the RPC client first in case any of the constructors
// require it.
- __llvm_libc::rpc::client.reset(__llvm_libc::rpc::default_port_count,
+ __llvm_libc::rpc::client.reset(__llvm_libc::rpc::DEFAULT_PORT_COUNT,
__llvm_libc::gpu::get_lane_size(),
rpc_shared_buffer);
diff --git a/libc/startup/gpu/nvptx/start.cpp b/libc/startup/gpu/nvptx/start.cpp
index 709a593..fdd3c43 100644
--- a/libc/startup/gpu/nvptx/start.cpp
+++ b/libc/startup/gpu/nvptx/start.cpp
@@ -45,7 +45,7 @@ extern "C" [[gnu::visibility("protected"), clang::nvptx_kernel]] void
_begin(int argc, char **argv, char **env, void *rpc_shared_buffer) {
// We need to set up the RPC client first in case any of the constructors
// require it.
- __llvm_libc::rpc::client.reset(__llvm_libc::rpc::default_port_count,
+ __llvm_libc::rpc::client.reset(__llvm_libc::rpc::DEFAULT_PORT_COUNT,
__llvm_libc::gpu::get_lane_size(),
rpc_shared_buffer);