[libc-commits] [libc] d86a6ea - [libc] Fix aliasing function name got accidentally deleted in #79128. (#79203)

via libc-commits libc-commits at lists.llvm.org
Tue Jan 23 12:19:37 PST 2024


Author: lntue
Date: 2024-01-23T14:19:34-06:00
New Revision: d86a6eacf661f2bf05ea486b7a04b0cc1f97919c

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

LOG: [libc] Fix aliasing function name got accidentally deleted in #79128. (#79203)

Added: 
    

Modified: 
    libc/src/__support/common.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/common.h b/libc/src/__support/common.h
index a153dfc363d737..53951dc131c28b 100644
--- a/libc/src/__support/common.h
+++ b/libc/src/__support/common.h
@@ -25,6 +25,7 @@
 #define LLVM_LIBC_FUNCTION_IMPL(type, name, arglist)                           \
   LLVM_LIBC_FUNCTION_ATTR decltype(LIBC_NAMESPACE::name)                       \
       __##name##_impl__ __asm__(#name);                                        \
+  decltype(LIBC_NAMESPACE::name) name [[gnu::alias(#name)]];                   \
   type __##name##_impl__ arglist
 #else
 #define LLVM_LIBC_FUNCTION_IMPL(type, name, arglist) type name arglist


        


More information about the libc-commits mailing list