Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] Fix aliasing function name got accidentally deleted in #79128. #79203

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

lntue
Copy link
Contributor

@lntue lntue commented Jan 23, 2024

No description provided.

@lntue lntue requested a review from frobtech January 23, 2024 20:16
@llvmbot llvmbot added the libc label Jan 23, 2024
@llvmbot
Copy link

llvmbot commented Jan 23, 2024

@llvm/pr-subscribers-libc

Author: None (lntue)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/79203.diff

1 Files Affected:

  • (modified) libc/src/__support/common.h (+1)
diff --git a/libc/src/__support/common.h b/libc/src/__support/common.h
index a153dfc363d7374..53951dc131c28b6 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

@jhuber6 jhuber6 merged commit d86a6ea into llvm:main Jan 23, 2024
4 of 5 checks passed
@lntue lntue deleted the sym branch January 23, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants