[llvm] [RemoveDIs][DebugInfo] Update SROA to handle DPVAssigns (PR #78475)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 17 09:03:16 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 69ec35fbecc74b3dd917b659e082ce2353303ca9 aa6e1431a9862d0722d1503065318ca65641deb0 -- llvm/include/llvm/IR/DebugInfo.h llvm/lib/Transforms/Scalar/SROA.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp
index 79a75afbb6..551a37b132 100644
--- a/llvm/lib/Transforms/Scalar/SROA.cpp
+++ b/llvm/lib/Transforms/Scalar/SROA.cpp
@@ -4896,9 +4896,10 @@ static void insertNewDbgInst(DIBuilder &DIB, DPValue *Orig, AllocaInst *NewAddr,
Instruction *BeforeInst) {
(void)DIB;
if (Orig->isDbgDeclare()) {
- DPValue *DPV = DPValue::createDPVDeclare(NewAddr, Orig->getVariable(), NewFragmentExpr,
- Orig->getDebugLoc());
- BeforeInst->getParent()->insertDPValueBefore(DPV, BeforeInst->getIterator());
+ DPValue *DPV = DPValue::createDPVDeclare(
+ NewAddr, Orig->getVariable(), NewFragmentExpr, Orig->getDebugLoc());
+ BeforeInst->getParent()->insertDPValueBefore(DPV,
+ BeforeInst->getIterator());
return;
}
if (!NewAddr->hasMetadata(LLVMContext::MD_DIAssignID)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/78475
More information about the llvm-commits
mailing list