[llvm] Avoid dbg.value between phi nodes when converting from DbgRecords (PR #83620)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 12:53:24 PST 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 76ce3c1bcf82056a61bcbdf776f67ac53d881df0 2ff4b2dc439489cabc707d3c307a78fe2a481fd4 -- llvm/lib/IR/BasicBlock.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index 2001804e70..1de5457e70 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -114,8 +114,7 @@ void BasicBlock::convertFromNewDbgValues() {
// Avoid inserting debug info between phi nodes.
if (isa<PHINode>(Inst))
I = getFirstNonPHIOrDbg()->getIterator();
- InstList.insert(I,
- DR.createDebugIntrinsic(getModule(), nullptr));
+ InstList.insert(I, DR.createDebugIntrinsic(getModule(), nullptr));
}
Marker.eraseFromParent();
``````````
</details>
https://github.com/llvm/llvm-project/pull/83620
More information about the llvm-commits
mailing list