[llvm] [DebugInfo][SelectionDAG] Fix position of salvaged 'dangling' DBG_VALUEs (PR #94458)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 03:51:40 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 5ae5774fb0b5cac11af479b0905dfdd5255b4047 ada8f02ccd0a19b3bfc65a5a70f6ba04ce145dad -- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.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 a0de95de16..efeaeb6cea 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -1700,9 +1700,9 @@ bool SelectionDAGBuilder::handleDebugValue(ArrayRef<const Value *> Values,
 
   // We have created a SDDbgOperand for each Value in Values.
   assert(!LocationOps.empty());
-  SDDbgValue *SDV = DAG.getDbgValueList(Var, Expr, LocationOps, Dependencies,
-                                        /*IsIndirect=*/false, DbgLoc,
-                                        Order, IsVariadic);
+  SDDbgValue *SDV =
+      DAG.getDbgValueList(Var, Expr, LocationOps, Dependencies,
+                          /*IsIndirect=*/false, DbgLoc, Order, IsVariadic);
   DAG.AddDbgValue(SDV, /*isParameter=*/false);
   return true;
 }

``````````

</details>


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


More information about the llvm-commits mailing list