[llvm] [orc-rt] Remove redundant extern keyword. (PR #222619)

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 04:52:43 PDT 2026


https://github.com/lhames created https://github.com/llvm/llvm-project/pull/222619

orc_rt_log_OSLogHandles is already extern via ORC_RT_C_EXPORT.

>From a736b3212e707674cd68049df97010a54ea2e400 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at apple.com>
Date: Thu, 10 Sep 2026 21:50:26 +1000
Subject: [PATCH] [orc-rt] Remove redundant extern keyword.

orc_rt_log_OSLogHandles is already extern via ORC_RT_C_EXPORT.
---
 orc-rt/include/orc-rt-c/support/Logging.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/orc-rt/include/orc-rt-c/support/Logging.h b/orc-rt/include/orc-rt-c/support/Logging.h
index 85f704470ec24..4e2a0983dcdfa 100644
--- a/orc-rt/include/orc-rt-c/support/Logging.h
+++ b/orc-rt/include/orc-rt-c/support/Logging.h
@@ -234,7 +234,7 @@ ORC_RT_C_EXPORT void orc_rt_log_printf(orc_rt_log_Level Level,
  * are filled lazily (and read) atomically by orc_rt_log_osLogHandle. An
  * implementation detail of that accessor; do not use directly.
  */
-ORC_RT_C_EXPORT extern os_log_t
+ORC_RT_C_EXPORT os_log_t
     orc_rt_log_OSLogHandles[orc_rt_log_Category_Count];
 
 /*



More information about the llvm-commits mailing list