[llvm] [LiveDebugVariables] Fix a DBG_VALUE reordering issue (PR #111124)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 02:33:08 PDT 2024
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 d9d623310de196f2119fc593811204993916e26e 0898a16be20fd6f879a22ab6b1b9500908c51ff2 --extensions cpp -- llvm/lib/CodeGen/LiveDebugVariables.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 13b33facb4..2ff346d3fd 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -1625,8 +1625,8 @@ findInsertLocation(MachineBasicBlock *MBB, SlotIndex Idx, LiveIntervals &LIS,
}
// Don't insert anything after the first terminator, though.
- auto It = MI->isTerminator() ? MBB->getFirstTerminator() :
- std::next(MachineBasicBlock::iterator(MI));
+ auto It = MI->isTerminator() ? MBB->getFirstTerminator()
+ : std::next(MachineBasicBlock::iterator(MI));
return skipDebugInstructionsForward(It, MBB->end());
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/111124
More information about the llvm-commits
mailing list