[llvm] [DebugInfo][JumpThreading] Fix missing debug location updates (PR #91581)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 03:37:06 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 b52fa9461ab73eaf2d04f32c806a1715b2595830 ffd78837d12effbd73b4450d78f85d6253f020fe -- llvm/lib/Transforms/Scalar/JumpThreading.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
index f7778166bc..11183d9551 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -1281,7 +1281,7 @@ bool JumpThreadingPass::simplifyPartiallyRedundantLoad(LoadInst *LoadI) {
if (AvailableVal->getType() != LoadI->getType()) {
AvailableVal = CastInst::CreateBitOrPointerCast(
AvailableVal, LoadI->getType(), "", LoadI->getIterator());
- if (Instruction * CI = dyn_cast<Instruction>(AvailableVal))
+ if (Instruction *CI = dyn_cast<Instruction>(AvailableVal))
CI->setDebugLoc(LoadI->getDebugLoc());
}
LoadI->replaceAllUsesWith(AvailableVal);
``````````
</details>
https://github.com/llvm/llvm-project/pull/91581
More information about the llvm-commits
mailing list