[llvm] Mark LastEpilogIdx as maybe_unused (PR #204857)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 19 09:25:56 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-x86
Author: Daniel Paoliello (dpaoliello)
<details>
<summary>Changes</summary>
#<!-- -->203108 added a variable which is read only in debug builds, so we are seeing warning in release builds without asserts.
---
Full diff: https://github.com/llvm/llvm-project/pull/204857.diff
1 Files Affected:
- (modified) llvm/lib/Target/X86/X86WinEHUnwindV3.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/Target/X86/X86WinEHUnwindV3.cpp b/llvm/lib/Target/X86/X86WinEHUnwindV3.cpp
index bd98b932459a6..901510763936e 100644
--- a/llvm/lib/Target/X86/X86WinEHUnwindV3.cpp
+++ b/llvm/lib/Target/X86/X86WinEHUnwindV3.cpp
@@ -301,7 +301,7 @@ bool X86WinEHUnwindV3::runOnMachineFunction(MachineFunction &MF) {
unsigned EpilogsInFragment = 0;
const EpilogSplitPoint *LastEpilog = nullptr;
- unsigned LastEpilogIdx = 0;
+ [[maybe_unused]] unsigned LastEpilogIdx = 0;
for (unsigned Idx = 0; Idx < Info.Epilogs.size(); ++Idx) {
const EpilogSplitPoint &Epilog = Info.Epilogs[Idx];
// If adding this epilog would exceed a fragment limit or is too far, end
``````````
</details>
https://github.com/llvm/llvm-project/pull/204857
More information about the llvm-commits
mailing list