[libc-commits] [libc] 442b0d9 - [LIBC] Clarify namespace of `thread_exit` in `pthread_exit`

Noah Goldstein via libc-commits libc-commits at lists.llvm.org
Fri Apr 14 11:14:45 PDT 2023


Author: Noah Goldstein
Date: 2023-04-14T13:14:16-05:00
New Revision: 442b0d9db4df4913b3e21dad30b21746964f8e1a

URL: https://github.com/llvm/llvm-project/commit/442b0d9db4df4913b3e21dad30b21746964f8e1a
DIFF: https://github.com/llvm/llvm-project/commit/442b0d9db4df4913b3e21dad30b21746964f8e1a.diff

LOG: [LIBC] Clarify namespace of `thread_exit` in `pthread_exit`

Just add `__llvm_libc::` to makes things clearer.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D148292

Added: 
    

Modified: 
    libc/src/pthread/pthread_exit.cpp

Removed: 
    


################################################################################
diff  --git a/libc/src/pthread/pthread_exit.cpp b/libc/src/pthread/pthread_exit.cpp
index d9866c6f48600..1d1a7377f8326 100644
--- a/libc/src/pthread/pthread_exit.cpp
+++ b/libc/src/pthread/pthread_exit.cpp
@@ -19,7 +19,7 @@ static_assert(sizeof(pthread_t) == sizeof(__llvm_libc::Thread),
               "Mismatch between pthread_t and internal Thread.");
 
 LLVM_LIBC_FUNCTION(void, pthread_exit, (void *retval)) {
-  thread_exit(ThreadReturnValue(retval), ThreadStyle::POSIX);
+  __llvm_libc::thread_exit(ThreadReturnValue(retval), ThreadStyle::POSIX);
 }
 
 } // namespace __llvm_libc


        


More information about the libc-commits mailing list