[Mlir-commits] [mlir] Fix null pointer dereference in logging in mlir TransformOps (PR #92237)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed May 15 03:42:56 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 ca4a405232cf170f20a2f111bf72beab82095935 a06d869bdff05ade316e42b68983110ca6a93510 -- mlir/lib/Dialect/Transform/IR/TransformOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
index 648fd33f8c..247759e21e 100644
--- a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
+++ b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
@@ -649,8 +649,8 @@ LogicalResult transform::ApplyConversionPatternsOp::verify() {
return emitOpError()
<< "expected exactly one op in default type converter region";
Operation *maybeTypeConverter = &typeConverterRegion.front().front();
- auto typeConverterOp =
- dyn_cast<transform::TypeConverterBuilderOpInterface>(maybeTypeConverter);
+ auto typeConverterOp = dyn_cast<transform::TypeConverterBuilderOpInterface>(
+ maybeTypeConverter);
if (!typeConverterOp) {
InFlightDiagnostic diag = emitOpError()
<< "expected default converter child op to "
``````````
</details>
https://github.com/llvm/llvm-project/pull/92237
More information about the Mlir-commits
mailing list