[llvm] b72079e - [ExecutionEngine] Fix a warning

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 11 15:54:30 PST 2025


Author: Kazu Hirata
Date: 2025-02-11T15:54:24-08:00
New Revision: b72079e75dbbe94752c3c187d79828845a65327d

URL: https://github.com/llvm/llvm-project/commit/b72079e75dbbe94752c3c187d79828845a65327d
DIFF: https://github.com/llvm/llvm-project/commit/b72079e75dbbe94752c3c187d79828845a65327d.diff

LOG: [ExecutionEngine] Fix a warning

This patch fixes:

  llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp:53:20:
  error: unused variable 'AddFnName' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp b/llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp
index c0807115c8398..05c819fd89bb6 100644
--- a/llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp
@@ -50,7 +50,7 @@ llvm_orc_rt_alt_UnwindInfoManager_deregister(const char *Data, uint64_t Size) {
 
 namespace llvm::orc {
 
-static const char *AddFnName = "__unw_add_find_dynamic_unwind_sections";
+[[maybe_unused]] static const char *AddFnName = "__unw_add_find_dynamic_unwind_sections";
 [[maybe_unused]] static const char *RemoveFnName = "__unw_remove_find_dynamic_unwind_sections";
 static std::unique_ptr<UnwindInfoManager> Instance;
 static int (*RemoveFindDynamicUnwindSections)(void *) = nullptr;


        


More information about the llvm-commits mailing list