[llvm] [InstrRef][NFC] Delete unused variables (PR #75501)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 14 09:36:51 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 1b531d54f6234488dec048fec1c5aca331bf8f3d 0259ccbd4cab300ff113cf34c8a6fd3a56c4b7d3 -- llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index 9300262580..aeb8a20e1f 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -1378,7 +1378,6 @@ bool InstrRefBasedLDV::transferDebugValue(const MachineInstr &MI) {
assert(MI.getDebugVariable()->isValidLocationForIntrinsic(MI.getDebugLoc()) &&
"Expected inlined-at fields to agree");
-
// If there are no instructions in this lexical scope, do no location tracking
// at all, this variable shouldn't get a legitimate location range.
auto *Scope = LS.findLexicalScope(MI.getDebugLoc().get());
``````````
</details>
https://github.com/llvm/llvm-project/pull/75501
More information about the llvm-commits
mailing list