[libc-commits] [libc] [libc] Fix aliasing function name got accidentally deleted in #79128. (PR #79203)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 23 12:17:03 PST 2024
https://github.com/lntue created https://github.com/llvm/llvm-project/pull/79203
None
>From a5608e107c821d08a403336f60ed9856f4b36362 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue at google.com>
Date: Tue, 23 Jan 2024 15:15:21 -0500
Subject: [PATCH] [libc] Fix aliasing function name got accidentally deleted in
#79128.
---
libc/src/__support/common.h | 1 +
1 file changed, 1 insertion(+)
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