Skip to content

Commit b72079e

Browse files
[ExecutionEngine] Fix a warning
This patch fixes: llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp:53:20: error: unused variable 'AddFnName' [-Werror,-Wunused-variable]
1 parent 36d8e70 commit b72079e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ llvm_orc_rt_alt_UnwindInfoManager_deregister(const char *Data, uint64_t Size) {
5050

5151
namespace llvm::orc {
5252

53-
static const char *AddFnName = "__unw_add_find_dynamic_unwind_sections";
53+
[[maybe_unused]] static const char *AddFnName = "__unw_add_find_dynamic_unwind_sections";
5454
[[maybe_unused]] static const char *RemoveFnName = "__unw_remove_find_dynamic_unwind_sections";
5555
static std::unique_ptr<UnwindInfoManager> Instance;
5656
static int (*RemoveFindDynamicUnwindSections)(void *) = nullptr;

0 commit comments

Comments
 (0)