summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlntue <35648136+lntue@users.noreply.github.com>2024-01-23 15:19:34 -0500
committerGitHub <noreply@github.com>2024-01-23 14:19:34 -0600
commitd86a6eacf661f2bf05ea486b7a04b0cc1f97919c (patch)
treeddf5908ef8b1dcc48983bd33de105d99e000529e
parentf1abe78e6b6adadb9fd9d6a239f40317c5d56f94 (diff)
[libc] Fix aliasing function name got accidentally deleted in #79128. (#79203)
-rw-r--r--libc/src/__support/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/src/__support/common.h b/libc/src/__support/common.h
index a153dfc363d7..53951dc131c2 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