[Mlir-commits] [mlir] [MLIR] Fix use-after-move in debug logging (PR #165208)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Oct 27 00:04:06 PDT 2025


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 origin/main HEAD --extensions h,cpp -- mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp mlir/lib/Dialect/SparseTensor/Transforms/Utils/IterationGraphSorter.cpp mlir/lib/Dialect/SparseTensor/Transforms/Utils/IterationGraphSorter.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/Utils/IterationGraphSorter.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/Utils/IterationGraphSorter.cpp
index b4b319ed3..ffa8b402e 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/Utils/IterationGraphSorter.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/Utils/IterationGraphSorter.cpp
@@ -152,8 +152,9 @@ IterationGraphSorter IterationGraphSorter::fromGenericOp(
 }
 
 IterationGraphSorter::IterationGraphSorter(
-    SmallVector<Value> &&insArg, SmallVector<AffineMap> &&loop2InsLvlArg, Value out,
-    AffineMap loop2OutLvl, SmallVector<utils::IteratorType> &&iterTypesArg,
+    SmallVector<Value> &&insArg, SmallVector<AffineMap> &&loop2InsLvlArg,
+    Value out, AffineMap loop2OutLvl,
+    SmallVector<utils::IteratorType> &&iterTypesArg,
     sparse_tensor::LoopOrderingStrategy strategy)
     : ins(std::move(insArg)), loop2InsLvl(std::move(loop2InsLvlArg)), out(out),
       loop2OutLvl(loop2OutLvl), iterTypes(std::move(iterTypesArg)),

``````````

</details>


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


More information about the Mlir-commits mailing list