[llvm] [DebugInfo][IndVarSimplify] fix missing debug location updates (PR #91443)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 01:10:58 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 8296f061aafb844bf3b9b002b7791ade7a1d3006 5fbc1bf4f07f8805dd8a34dfd8ebd6ae2815df8a -- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index ff24c94aad..dd7c89034c 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -395,7 +395,7 @@ bool IndVarSimplify::handleFloatingPointIV(Loop *L, PHINode *PN) {
// platforms.
if (WeakPH) {
Instruction *Conv = new SIToFPInst(NewPHI, PN->getType(), "indvar.conv",
- PN->getParent()->getFirstInsertionPt());
+ PN->getParent()->getFirstInsertionPt());
Conv->setDebugLoc(PN->getDebugLoc());
PN->replaceAllUsesWith(Conv);
RecursivelyDeleteTriviallyDeadInstructions(PN, TLI, MSSAU.get());
``````````
</details>
https://github.com/llvm/llvm-project/pull/91443
More information about the llvm-commits
mailing list