[llvm] [DWARFCFIChecker] Remove an unused local variable (NFC) (PR #168487)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 17 22:22:27 PST 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/168487
Note that getCurrentUnwindRow does not change any state.
Identified with unused-local-non-trivial-variable.
>From f01441fd320fd95896a573c4e82c831e34441fce Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Mon, 17 Nov 2025 18:04:24 -0800
Subject: [PATCH] [DWARFCFIChecker] Remove an unused local variable (NFC)
Note that getCurrentUnwindRow does not change any state.
Identified with unused-local-non-trivial-variable.
---
llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp b/llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp
index bca820fa807c8..4acc064dbc212 100644
--- a/llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp
+++ b/llvm/lib/DWARFCFIChecker/DWARFCFIState.cpp
@@ -64,7 +64,6 @@ dwarf::CFIProgram DWARFCFIState::convert(MCCFIInstruction Directive) {
/* CodeAlignmentFactor */ 1, /* DataAlignmentFactor */ 1,
Context->getTargetTriple().getArch());
- auto MaybeCurrentRow = getCurrentUnwindRow();
switch (Directive.getOperation()) {
case MCCFIInstruction::OpSameValue:
CFIP.addInstruction(dwarf::DW_CFA_same_value, Directive.getRegister());
More information about the llvm-commits
mailing list