[libc-commits] [libc] 9c2e544 - [libc] remove spurious LIBC_INLINE (#74505)

via libc-commits libc-commits at lists.llvm.org
Tue Dec 5 10:53:52 PST 2023


Author: Nick Desaulniers
Date: 2023-12-05T10:53:48-08:00
New Revision: 9c2e5449f4c7b8dea918cf9640a4cc26c6972866

URL: https://github.com/llvm/llvm-project/commit/9c2e5449f4c7b8dea918cf9640a4cc26c6972866
DIFF: https://github.com/llvm/llvm-project/commit/9c2e5449f4c7b8dea918cf9640a4cc26c6972866.diff

LOG: [libc] remove spurious LIBC_INLINE (#74505)

This function is marked noinline; the inline keyword (or whatever
LIBC_INLINE
resolves to) will have no effect.

Added: 
    

Modified: 
    libc/src/__support/threads/linux/thread.cpp

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/threads/linux/thread.cpp b/libc/src/__support/threads/linux/thread.cpp
index 5c84266ee5d0e..fcf87cc587a50 100644
--- a/libc/src/__support/threads/linux/thread.cpp
+++ b/libc/src/__support/threads/linux/thread.cpp
@@ -176,7 +176,7 @@ cleanup_thread_resources(ThreadAttributes *attrib) {
 #endif
 }
 
-[[gnu::noinline]] LIBC_INLINE void start_thread() {
+[[gnu::noinline]] void start_thread() {
   auto *start_args = reinterpret_cast<StartArgs *>(get_start_args_addr());
   auto *attrib = start_args->thread_attrib;
   self.attrib = attrib;


        


More information about the libc-commits mailing list