[llvm] [DebugInfo][RemoveDIs] Handle dbg.declares in SelectionDAGISel (PR #73496)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 02:15:12 PST 2023


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 17139f38e55ec06b8546b9306e04e64d0408033a 37cde421257f8e3e8b719e9b5c07fe47b3b59385 -- llvm/include/llvm/CodeGen/FunctionLoweringInfo.h llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 0e3f0c8653..198e7145e1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -6312,8 +6312,8 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
     // Assume dbg.declare can not currently use DIArgList, i.e.
     // it is non-variadic.
     assert(!DI.hasArgList() && "Only dbg.value should currently use DIArgList");
-    handleDebugDeclare(DI.getVariableLocationOp(0), Variable,
-                       Expression, DI.getDebugLoc());
+    handleDebugDeclare(DI.getVariableLocationOp(0), Variable, Expression,
+                       DI.getDebugLoc());
     return;
   }
   case Intrinsic::dbg_label: {

``````````

</details>


https://github.com/llvm/llvm-project/pull/73496


More information about the llvm-commits mailing list