From 5e09b172d9ea88ca76024c6adc631abd94304ab7 Mon Sep 17 00:00:00 2001 From: Sergei Barannikov Date: Sun, 2 Apr 2023 18:33:27 +0300 Subject: [PATCH] [compiler-rt] Avoid double-prefixing aliases with __USER_LABEL_PREFIX__ The prefix is added by DECLARE_SYMBOL_VISIBILITY. Calling SYMBOL_NAME resulted in adding the prefix twice. Reviewed By: dim Differential Revision: https://reviews.llvm.org/D147077 --- compiler-rt/lib/builtins/assembly.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h index 69a3d8620f92..169d49683f50 100644 --- a/compiler-rt/lib/builtins/assembly.h +++ b/compiler-rt/lib/builtins/assembly.h @@ -267,7 +267,7 @@ #define DEFINE_COMPILERRT_FUNCTION_ALIAS(name, target) \ .globl SYMBOL_NAME(name) SEPARATOR \ SYMBOL_IS_FUNC(SYMBOL_NAME(name)) SEPARATOR \ - DECLARE_SYMBOL_VISIBILITY(SYMBOL_NAME(name)) SEPARATOR \ + DECLARE_SYMBOL_VISIBILITY(name) SEPARATOR \ .set SYMBOL_NAME(name), SYMBOL_NAME(target) SEPARATOR #if defined(__ARM_EABI__)